AmplifyAsyncThrowingSequence
public class AmplifyAsyncThrowingSequence<Element> : AsyncSequence, Cancellable, @unchecked Sendable where Element : Sendable
Note
@unchecked Sendable for the same reason as AmplifyAsyncSequence: _parent and
_isCancelled are mutable but every access is serialized by lock.
-
Declaration
Swift
public typealias Iterator = AsyncThrowingStream<Element, Error>.Iterator -
Externally read-only, exactly as the previous
public private(set)stored property was.Declaration
Swift
public var isCancelled: Bool { get } -
Declaration
Swift
public init( parent: Cancellable? = nil, bufferingPolicy: AsyncThrowingStream<Element, Error>.Continuation.BufferingPolicy = .unbounded ) -
Declaration
Swift
public func makeAsyncIterator() -> Iterator -
Declaration
Swift
public func send(_ element: Element) -
Declaration
Swift
public func fail(_ error: Error) -
Declaration
Swift
public func finish() -
Declaration
Swift
public func cancel()
View on GitHub