Structure

AsyncStream.Continuation

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

Declaration 宣言

struct AsyncStream<Element>.Continuation

Overview 概要

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.

Topics 話題

Producing Elements

Finishing the Stream

Handling Termination

Enumerations 列挙

Relationships 関係

Conforms To 次に準拠

See Also 参照

Creating a Continuation-Based Stream