ConnectableStreamExtensions<T> extension
Extends the Stream class with the ability to transform a single-subscription Stream into a ConnectableStream.
- on
-
- Stream<
T>
- Stream<
Methods
-
publish(
) → PublishConnectableStream< T> -
Available on Stream<
Convert the current Stream into aT> , provided by the ConnectableStreamExtensions extensionConnectableStream
that can be listened to multiple times. It will not begin emitting items from the original Stream until theconnect
method is invoked. -
publishReplay(
{int? maxSize}) → ReplayConnectableStream< T> -
Available on Stream<
Convert the current Stream into aT> , provided by the ConnectableStreamExtensions extensionReplayConnectableStream
that can be listened to multiple times. It will not begin emitting items from the original Stream until theconnect
method is invoked. -
publishValue(
) → ValueConnectableStream< T> -
Available on Stream<
Convert the current Stream into aT> , provided by the ConnectableStreamExtensions extensionValueConnectableStream
that can be listened to multiple times. It will not begin emitting items from the original Stream until theconnect
method is invoked. -
publishValueSeeded(
T seedValue) → ValueConnectableStream< T> -
Available on Stream<
Convert the current Stream into aT> , provided by the ConnectableStreamExtensions extensionValueConnectableStream
that can be listened to multiple times, providing an initial seeded value. It will not begin emitting items from the original Stream until theconnect
method is invoked. -
Available on Stream<
Convert the current Stream into a new Stream that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
Available on Stream<
Convert the current Stream into a newT> , provided by the ConnectableStreamExtensions extensionReplayStream
that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain. -
Available on Stream<
Convert the current Stream into a new ValueStream that can be listened to multiple times. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension -
Available on Stream<
Convert the current Stream into a new ValueStream that can be listened to multiple times, providing an initial value. It will automatically begin emitting items when first listened to, and shut down when no listeners remain.T> , provided by the ConnectableStreamExtensions extension