ChannelIterator

public struct ChannelIterator<Update, Success> : IteratorProtocol

Synchronously iterates over each update value of channel

  • Declaration

    Swift

    public typealias Element = Update
  • completion of the channel. Will be available as soon as the channel completes.

    Declaration

    Swift

    public var completion: Fallible<Success>? { get }
  • success of the channel. Will be available as soon as the channel completes with success.

    Declaration

    Swift

    public var success: Success? { get }
  • failure of the channel. Will be available as soon as the channel completes with failure.

    Declaration

    Swift

    public var filure: Swift.Error? { get }
  • fetches next value from the channel. Waits for the next value to appear. Returns nil when then channel completes

    Declaration

    Swift

    public mutating func next() -> Update?