Swift pitch adds single-yield functions beyond accessors
A language proposal would let ordinary functions suspend after handing out a value, then resume for cleanup, aiming to shrink with-style closure pyramids.
By rvalueA language proposal would let ordinary functions suspend after handing out a value, then resume for cleanup, aiming to shrink with-style closure pyramids.
By rvalueThe attribute would let the compiler enforce at-most-once calls and reason about closure captures alongside non-copyable types.
By segfault