Select operator based on stream value

前端 未结 0 1214
[愿得一人]
[愿得一人] 2021-02-14 23:26

There is one data source that emits values 0 or 1.

If 0 I want to pipe it throught switchMap operator.

If 1 I want to pipe it throught exhaustMap operator.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题