#5
Apr 06
select for Multiple Channels
The select statement waits on multiple channel operations simultaneously, like a switch for channels. This is how you implement timeouts (select with time.After), cancellation (select with a done channel), and fan-in (merge multiple channels into one). Learn select early.
By: carol_null
Apr 06, 2026 18:39