StreamExtensions<T> extension
Utility extensions on Stream.
- on
-
- Stream<
T>
- Stream<
Properties
-
firstOrNull
→ Future<
T?> -
Available on Stream<
A future which completes with the first event of this stream, or withT> , provided by the StreamExtensions extensionnull
.no setter
Methods
-
listenAndBuffer(
) → Stream< T> -
Available on Stream<
Eagerly listens to this stream and buffers events until needed.T> , provided by the StreamExtensions extension -
slices(
int length) → Stream< List< T> > -
Available on Stream<
Creates a stream whose elements are contiguous slices ofT> , provided by the StreamExtensions extensionthis
.