2 ms·
Channels are appealing, but they're trickier than they seem. Especially when you're selecting on two channels waiting for one event to happen first but then bot
by tedunangst 8y ago
Channels are appealing, but they're trickier than they seem. Especially when you're selecting on two channels waiting for one event to happen first but then both happen at the same time. Eventually you end up with special code in both cases to check whether the othe thing happened and try to stop it, and then what if you're late, ... The code is easy to write, but hard to make correct.