tweek
This commit is contained in:
parent
7aab87b272
commit
6611e36633
@ -24,7 +24,7 @@ func main() {
|
|||||||
// awaits a value to be sent after the timeout of
|
// awaits a value to be sent after the timeout of
|
||||||
// 1s. Since `select` proceeds with the first
|
// 1s. Since `select` proceeds with the first
|
||||||
// receive that's ready, we'll take the timeout case
|
// receive that's ready, we'll take the timeout case
|
||||||
// if the operation takes more than the allowed 1000ms.
|
// if the operation takes more than the allowed 2s
|
||||||
select {
|
select {
|
||||||
case res := <-c1:
|
case res := <-c1:
|
||||||
fmt.Println(res)
|
fmt.Println(res)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user