4 ms·
Go has a trick where you can set a channel to nil in order to get its functionality ignored in your select. If you gave the select all the possible channels and
by jzelinskie 13y ago
Go has a trick where you can set a channel to nil in order to get its functionality ignored in your select. If you gave the select all the possible channels and turned them on and off rather than adding/removing channels you can obtain similar functionality.
- swannodette 13y agoYes you need to know all the channels ahead of time, this restriction simply doesn't exist in core.async.