Class FlowKt

  • All Implemented Interfaces:

    
    public final class FlowKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • 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.