使用rxscala,我们可以订阅这样的observable:
val stream = Observable.just(1, 2, 3)
stream.subscribe(x => doSomething(x))
stream.subscribe(x => doSomething(x))
stream.subscribe(x => doSomething(x))
stream.subscribe(x => doSomething(x))
是否可以取消订阅stream
方面的所有观察员(有4个)?