Continuation

extension AsyncStream.Continuation
  • Yield the provided value and then finish the stream.

    Declaration

    Swift

    public func finish(with value: Element)

    Parameters

    value

    The value to yield to the stream.