tinygo/testdata/channel.txt
Ayke van Laethem b7197bcaae compiler,runtime: implement non-blocking selects
Blocking selects are much more complicated, so let's do non-blocking
ones first.
2019-06-12 18:26:52 +02:00

32 строки
506 Б
Text

len, cap of channel: 0 0 false
recv from open channel: 1 true
received num: 2
received num: 3
slept
received num: 4
received num: 5
received num: 6
received num: 7
received num: 8
recv from closed channel: 0 false
complex128: (+7.000000e+000+1.050000e+001i)
got n: 10
got n: 11
got n: 10
got n: 11
got n: 10
got n: 11
sum: 25
sum: 29
sum: 33
sum(100): 4950
deadlocking
select no-op
after no-op
select one sent
sum: 5
select one n: 0
select n from chan: 55
select n from closed chan: 0
select send
sum: 235