Function onCompletionContinueWith

  • The resulting observable first emits all values from source observable. On completion of source the given continueWith function will be called and returns another observable. Resulting observable continues with emitted values of this observable provided by the continueWith function.

    marble

    source: -a-b-c-|

    return of continueWith: --d-e-f-|

    result: -a-b-c---d-e-f-|

    Type Parameters

    • T

    • O

    Parameters

    • continueWith: ((lastValue) => Observable<O>)

      function that delivers an observable to continue with

        • (lastValue): Observable<O>
        • Parameters

          • lastValue: T

          Returns Observable<O>

    Returns ((source) => Observable<T | O>)

      • (source): Observable<T | O>
      • Parameters

        • source: Observable<T>

        Returns Observable<T | O>

Generated using TypeDoc