StreamExtensions<T> extension Null safety

Utility extensions on Stream.

on

Properties

firstOrNull Future<T?>
A future which completes with the first event of this stream, or with null.
read-only

Methods

slices(int length) Stream<List<T>>
Creates a stream whose elements are contiguous slices of this.