4 ms·
The async/await is not a revolution, but rather is a tool only for specific use cases. It shouldn't be used by default, as it makes the project unnecessarily co
by self_awareness 2y ago
The async/await is not a revolution, but rather is a tool only for
specific use cases. It shouldn't be used by default, as it makes the
project unnecessarily complicated. If your requirements are to do heavy
parallelism where everything uses I/O, then use async, but for the rest
of cases? Probably not worth it.
- cyberax 2y agoThe revolution is the need for massive concurrency. It doesn't need to be async/await, Go-like green threads are even better.