An AsyncThrowingStream that never emits and never completes unless cancelled.
AsyncThrowingStream
static var never: `Self` { get }
sScs17ConcurrencyExtrass5Error_pRs_rlE5neverScsyxsAB_pGvpZ
6XHXE
where Failure == any Error
import _Concurrency
import ConcurrencyExtras
Useful, testable Swift concurrency.
struct AsyncThrowingStream<Element, Failure> where Failure : Error
An asynchronous sequence generated from an error-throwing closure that calls a continuation to produce new elements.
protocol Error : Sendable
A type representing an error value that can be thrown.
init<S>(_ sequence: S) where Element == S.Element, S : Sendable, S : AsyncSequence
Produces an AsyncThrowingStream from an AsyncSequence by consuming the sequence till it terminates, rethrowing any failure.
AsyncSequence
static func finished(throwing error: Failure? = nil) -> AsyncThrowingStream<Element, Failure>
An AsyncThrowingStream that completes immediately.
init<S>(_ sequence: S) where Element == S.Element, S : AsyncSequence