Class FlowKt
-
- All Implemented Interfaces:
public final class FlowKt
-
-
Method Summary
-
-
Method Detail
-
onFirst
final static <T extends Any> Flow<T> onFirst(Flow<T> $self, Function1<T, Unit> onFirst)
Calls the onFirst lambda when the first element is emitted by the upstream Flow.
- Parameters:
onFirst- The lambda called when the first element is emmited by the upstream Flow.- Returns:
The upstream Flow this operator was called on.
-
-
-
-