This prints: `[1a, 1b, 1c, 1d, 2d, 2e]`. Why doesn...
# coroutines
p
This prints:
[1a, 1b, 1c, 1d, 2d, 2e]
. Why doesn't it start with
1b
?
o
why would you expect it to start with 1b? it looks like the first emitted combination would be 1a, and it is
p
Because the letters are delayed by 4ms and the numbers are delayed by 10ms. Therefore I would expect that at 10 ms,
1
emits and
a and b
have emitted and therefore a
1b
should have been combined
o
hmm, depending on your OS/hardware, you may just be running it too close -- windows can have timer inaccuracies up to 15ms