2 ms·
As far as priority goes, most interesting cases will have priority based on the data in the read, except for this specific case of a done chan el and a data cha
by lanstin 5y ago
As far as priority goes, most interesting cases will have priority based on the data in the read, except for this specific case of a done chan el and a data channel. I used that pattern at first but have been moving away from it. To be sure i am mostly writing long lived processes with fixed pools of worker go routines and either never exit or exit based on WaitGroups determining the work is all done.
- tapirl 5y agoYes, it (the lack of deterministic-select) is only annoying for several special cases. For most cases, it doesn't matter whether or not the default behavior is deterministic.