4 ms·
Such things bites everyone. But writing to closed channel is regarded as programming error. You potentially lose values. So logic should be watertight, which is
by loopz 7y ago
Such things bites everyone. But writing to closed channel is regarded as programming error. You potentially lose values. So logic should be watertight, which is hard with concurrency. Doing simplest approach to locking helps.
Better with panic than silent errors and flawed logic.
- pdimitar 7y agoYeah. I'm not opposed to such idioms. As I mentioned before, you get used to them.