Structureswift-nio 2.72.0NIOCore
Source
A struct to interface between the synchronous code of the producer and the asynchronous consumer. This type allows the producer to synchronously yield
new elements to the NIOThrowingAsyncSequenceProducer
and to finish
the sequence.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
struct Source
Other members in extension
Types
Instance members
Citizens in NIOCore
Conformances
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Types
enum YieldResult
The result of a call to
yield(_:)
.
Instance members
func finish(
) Finishes the sequence.
func finish(Failure
) Finishes the sequence with the given
Failure
.func yield(Element
) -> YieldResult Yields a new elements to the
NIOThrowingAsyncSequenceProducer
.func yield<S>(contentsOf: S
) -> YieldResult Yields a sequence of new elements to the
NIOThrowingAsyncSequenceProducer
.