AnySharedStream
public struct AnySharedStream<Output> : StreamConvertible
A type-erasing shared stream.
Shared streams can yield their output to more than one receiver and are safe to use from multiple tasks concurrently.
-
Declaration
Swift
@inlinable public init<S>(_ base: Stream._Private.Share<S>) where Output == S.Output, S : StreamProtocol
-
Declaration
Swift
@inlinable public func makeStream() -> AnyStream<Output>