func yield(Element) -> AsyncStream<Element>.Continuation.YieldResult
Resume the task awaiting the next iteration point by having it return nomally from its suspension point with a given element.
func yield(with: Result<Element, Never>) -> AsyncStream<Element>.Continuation.YieldResult
Resume the task awaiting the next iteration point by having it return normally from its suspension point with a given result’s success value.
func yield() -> AsyncStream<Element>.Continuation.YieldResult
Resume the task awaiting the next iteration point by having it return normally from its suspension point.
enum AsyncStream.Continuation.YieldResult
A type that indicates the result of yielding a value to a client, by way of the continuation.