Publisher

public extension Publisher
public extension Publisher where Failure == Never

AsyncCompatibilityKit Copyright © John Sundell 2021 MIT license, see LICENSE.md file for details

  • Convert this publisher into an AsyncThrowingStream that can be iterated over asynchronously using for try await. The stream will yield each output value produced by the publisher and will finish once the publisher completes.

    Declaration

    Swift

    var values: AsyncThrowingStream<Output, Error> { get }

Available where Failure == Never

  • Convert this publisher into an AsyncStream that can be iterated over asynchronously using for await. The stream will yield each output value produced by the publisher and will finish once the publisher completes.

    Declaration

    Swift

    var values: AsyncStream<Output> { get }