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 usingfor 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 }
-
Convert this publisher into an
AsyncStream
that can be iterated over asynchronously usingfor 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 }