11 lines
251 B
Bash
11 lines
251 B
Bash
# We receive the values `"one"` and then `"two"` as
|
|
# expected.
|
|
$ time go run select.go
|
|
received one
|
|
received two
|
|
|
|
# Note that the total execution time is only ~2 seconds
|
|
# since both the 1 and 2 second `Sleeps` execute
|
|
# concurrently.
|
|
real 0m2.245s
|