Interface TerminalStage<I,​O>

  • All Superinterfaces:
    Function<io.reactivex.Flowable<I>,​CompletionStage<O>>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TerminalStage<I,​O>
    extends Function<io.reactivex.Flowable<I>,​CompletionStage<O>>
    Defines a terminal stage - so a stream subscription and observation.
    Author:
    Clement Escoffier
    • Method Detail

      • apply

        CompletionStage<O> apply​(io.reactivex.Flowable<I> flowable)
        Creates the CompletionStage called when the embedded logic has completed or failed.
        Specified by:
        apply in interface Function<I,​O>
        Parameters:
        flowable - the observed / subscribed stream
        Returns:
        the asynchronous result