XStreamSemaphore<T> extension

on

Methods

parallelMap<V>(Future<V> mapper(T t)) Stream<V>

Available on Stream<T>, provided by the XStreamSemaphore extension

Unlike asyncMap and semaphoreMap: the order of the output is not guaranteed. As soon as a Future is completed, it is yielded. Once all Futures are completed, the Stream is completed.
semaphoreMap<V>(int bufferSize, Future<V> mapper(T t)) Stream<V>

Available on Stream<T>, provided by the XStreamSemaphore extension

Unlike asyncMap: INPUT -> (await) MAPPER -> OUTPUT