Function switchMap

  • Map each value of a stream to a substream, then output the resulting substreams until a new value arrives.

    (This is just shorthand for compose(map(mapper),switchAll).)

    (If you want to send all the values of each stream to the output without stopping, input stream, use concatMap or mergeMap instead.)

    Type Parameters

    • T
    • R

    Parameters

    Returns Transformer<T, R>