Enumerationswift-nio 2.72.0NIOCore
YieldResult
The result of a call to yield(_:)
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
enum YieldResult
Cases
case produceMore
Indicates that the caller should produce more elements.
case stopProducing
Indicates that the caller should stop producing elements.
case dropped
Indicates that the yielded elements have been dropped because the sequence already terminated.
Other members in extension
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
.
Citizens in NIOCore
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.