top | item 37458423 (no title) vc8f6vVV | 2 years ago Channel with an additional thread for sleep? Waiting for a channel is not a poll. discuss order hn newest conradludgate|2 years ago You either wait on the channel or wait on a read. How do you manage both? vc8f6vVV|2 years ago You wait on a shared channel so both read and sleep threads queue a message when ready (whichever comes first). Not sure about channels, but in other languages it would be a concurrent queue. load replies (1)
conradludgate|2 years ago You either wait on the channel or wait on a read. How do you manage both? vc8f6vVV|2 years ago You wait on a shared channel so both read and sleep threads queue a message when ready (whichever comes first). Not sure about channels, but in other languages it would be a concurrent queue. load replies (1)
vc8f6vVV|2 years ago You wait on a shared channel so both read and sleep threads queue a message when ready (whichever comes first). Not sure about channels, but in other languages it would be a concurrent queue. load replies (1)
conradludgate|2 years ago
vc8f6vVV|2 years ago