AmplifyAsyncThrowingSequence

public class AmplifyAsyncThrowingSequence<Element> : AsyncSequence, Cancellable where Element : Sendable
  • Declaration

    Swift

    public typealias Iterator = AsyncThrowingStream<Element, Error>.Iterator
  • Declaration

    Swift

    public private(set) 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()