Switch<T> extension

A utility to take events from the most recent sub stream returned by a callback.

on

Methods

switchMap<S>(Stream<S> convert(T)) Stream<S>

Available on Stream<T>, provided by the Switch extension

Maps events to a Stream and emits values from the most recently created Stream.