Continuation

    A mechanism to interface between synchronous code and an asynchronous stream.

    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    struct Continuation

    The closure you provide to the AsyncStream in init(_:bufferingPolicy:_:) receives an instance of this type when invoked. Use this continuation to provide elements to the stream by calling one of the yield methods, then terminate the stream normally by calling the finish() method.

    Citizens in _Concurrency

    Conformances

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.

    Members