mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
2e4dd09bbc
Support for channels is not complete. The following pieces are missing:
* Channels with values bigger than int. An int in TinyGo can always
contain at least a pointer, so pointers are okay to send.
* Buffered channels.
* The select statement.
22 lines
307 B
Plaintext
22 lines
307 B
Plaintext
len, cap of channel: 0 0
|
|
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
|
|
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
|