1

With rxscala, we can subscribe on the observables like this:

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))

Is it possible to unsubscribe all the observers(there are 4) from the stream side?

Freewind
  • 193,756
  • 157
  • 432
  • 708
  • 2
    Could you store the Subscriptions returned by `subscribe` into a CompositeSubscription? Then you can unsubscribe `CompositeSubscription`. – zsxwing Nov 19 '15 at 18:46

0 Answers0