-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
Line 407 in b4120ab
if (chan_can_recv(chan)) |
Line 444 in b4120ab
if (select.recv && chan_recv(select.chan, recv_out) != 0) |
In the implementation of chan_select
, it first checks every channel to see if it can recv/send. After that it randomly select one and do the recv/send.
What about if a channel can recv/send while checking but cannnot when really do it.
It seems the chan_select will block.
Metadata
Metadata
Assignees
Labels
No labels