makeSequence(elementType:failureType:backPressureStrategy:finishOnDeinit:delegate:)
Initializes a new NIOThrowingAsyncSequenceProducer
and a Source
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
static func makeSequence(elementType: Element.Type = Element.self, failureType: Failure.Type = Error.self, backPressureStrategy: Strategy, finishOnDeinit: Bool, delegate: Delegate) -> NewSequence where Failure == any Error
Parameters
- elementType
The element type of the sequence.
- failureType
The failure type of the sequence. Must be
Swift.Error
- backPressureStrategy
The back-pressure strategy of the sequence.
- finishOnDeinit
Indicates if
finish
should be called on deinit of the. We do not recommend to rely on deinit based resource tear down.- delegate
The delegate of the sequence
Returns
A Source
and a NIOThrowingAsyncSequenceProducer
.