Package io.atleon.kotlin
Class AloFluxKt
-
- All Implemented Interfaces:
public final class AloFluxKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any, V extends Any> AloFlux<V>suspendMap(AloFlux<T> $self, SuspendFunction1<T, V> mapper)Apply a coroutine-based mapping of items to an AloFlux. final static <T extends Any, V extends Any> AloFlux<V>suspendMap(AloFlux<T> $self, SuspendFunction1<T, V> mapper, Integer concurrency)Apply a coroutine-based mapping of items to an AloFlux with a configurable maximum number of concurrent invocations. final static <T extends Any, V extends Any> AloFlux<V>flowMap(AloFlux<T> $self, Function1<T, Flow<V>> mapper)Apply a one-to-many Flow-based mapping of items to an AloFlux. final static <T extends Any, V extends Any> AloFlux<V>flowMap(AloFlux<T> $self, Function1<T, Flow<V>> mapper, Integer concurrency, Integer prefetch)Apply a one-to-many Flow-based mapping of items to an AloFlux with a configurable maximum number of concurrent invocations and in-flight elements from each inner Flow. -
-
Method Detail
-
suspendMap
final static <T extends Any, V extends Any> AloFlux<V> suspendMap(AloFlux<T> $self, SuspendFunction1<T, V> mapper)
Apply a coroutine-based mapping of items to an AloFlux.
-
suspendMap
final static <T extends Any, V extends Any> AloFlux<V> suspendMap(AloFlux<T> $self, SuspendFunction1<T, V> mapper, Integer concurrency)
Apply a coroutine-based mapping of items to an AloFlux with a configurable maximum number of concurrent invocations. Concurrent outputs are interleaved and therefore emission order is non-deterministic.
-
flowMap
final static <T extends Any, V extends Any> AloFlux<V> flowMap(AloFlux<T> $self, Function1<T, Flow<V>> mapper)
Apply a one-to-many Flow-based mapping of items to an AloFlux.
-
flowMap
final static <T extends Any, V extends Any> AloFlux<V> flowMap(AloFlux<T> $self, Function1<T, Flow<V>> mapper, Integer concurrency, Integer prefetch)
Apply a one-to-many Flow-based mapping of items to an AloFlux with a configurable maximum number of concurrent invocations and in-flight elements from each inner Flow. Concurrent outputs from inner Flows are interleaved and therefore emission order is non-deterministic.
-
-
-
-