2 ms·
> don’t pollute WaitGroups, Mutexes and spawning channels for things you could just ‘await’.
by neonsunset 2y ago
> don’t pollute
WaitGroups, Mutexes and spawning channels for things you could just ‘await’.
- Sheeny96 2y agoMutexes are for thread safety, channels are for communicating between threads and waitgroups is an alternative to Promise.allSettled (in JS anyway, not enough experience with C# or other await impls), except you don't need to load up the promises first and then fire them. Wat.