Package 

Class FlowKt

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.