Select operator based on stream value

前端 未结 0 1948
感情败类
感情败类 2021-02-14 23:09

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.

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