I'm not sure that you are keeping order due to the asynchronous nature subscribe.
, , random$ , , . , . , , , , , , .
- : "" "" ? , , , , , - Rxjs.
, .. , ( ), ( ), multicast , . ,
var random$ = Rx.Observable.interval(1000)
.map(() => setFlagToRandomTrueOrFalse())
.filter(x => x)
.share();
, , . , , . , multicast -like , ( ) , , . , RxJS? ,
, , . , flag, .
, Rxjs: ,