Answer the question
In order to leave comments, you need to log in
How to explain the addition of two asynchronous threads?
Is there any way to logically explain what happens in this code:
var b = Rx.Observable.interval(1000);
var a = Rx.Observable.interval(3000);
b.concat(a).subscribe((val) => console.log(val));
0
1
2
<b>1</b>
3
4
5
<b>2</b>
6
7
8
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question