StreamExtensions<T> extension
Batch Processing & Mapping for Streams
- on
-
- Stream<
T>
- Stream<
Methods
-
asyncMap<
R> (Future< R> mapper(T)) → Stream<R> -
Available on Stream<
Maps values asynchronouslyT> , provided by the StreamExtensions extension -
batch(
int batchSize) → Stream< List< T> > -
Available on Stream<
Batches stream values into lists of sizeT> , provided by the StreamExtensions extensionbatchSize -
collect(
) → Future< List< T> > -
Available on Stream<
Converts Stream into ListT> , provided by the StreamExtensions extension -
delayEach(
Duration duration) → Stream< T> -
Available on Stream<
Delays stream itemsT> , provided by the StreamExtensions extension