init(_:)

Produces an AsyncThrowingStream from an AsyncSequence by consuming the sequence till it terminates, rethrowing any failure.

AsyncThrowingStream.swift:16
iOS
deprecated
macOS
deprecated
tvOS
deprecated
watchOS
deprecated
init<S>(_ sequence: S) where Element == S.Element, S : Sendable, S : AsyncSequence

Parameters

sequence

An async sequence.