4 ms·
> Simple code executed in a thread pool or whatever is so much easier to reason about. reply Hard disagree. It's much easier to reason about async await becaus
by cypress66 3y ago
> Simple code executed in a thread pool or whatever is so much easier to reason about.
reply
Hard disagree. It's much easier to reason about async await because you don't need to worry about preemption. You (generally) don't need mutexes or anything like that.
- winrid 3y agohard disagree. :) When do you have to worry about synchronization? You don't. Pull DB connection from pool, etc, done. Async await has colored functions, promises, and other atrocities. Even if I have some locking primitives somewhere I'll GLADLY take that over the fucking mess of async stack traces and code executed "next tick" with no trace.