Search code examples
rxjsreactivexrx.net

Equivalent of RxJS switchMap in ReactiveX/Rx.NET


In RxJS, there is a switchMap function. Is there an equivalent in ReactiveX/Rx.NET? I don't see one in the transforming documentation.


Solution

  • Edit

    switch is the equivalent. http://reactivex.io/documentation/operators/switch.html

    In short, switchMap and switch will cancel any previous streams whereas flatMap will not.