Enumeration_Concurrency5.9.0
YieldResult
A type that indicates the result of yielding a value to a client, by way of the continuation.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
enum YieldResult
The various yield
methods of AsyncThrowingStream.Continuation
return this type to indicate the success or failure of yielding an element to the continuation.
Citizens in _Concurrency
Members
case dropped(Element)
The stream didn’t enqueue the element because the buffer was full.
case enqueued(remaining: Int)
The stream successfully enqueued the element.
case terminated
The stream didn’t enqueue the element because the stream was in a terminal state.