3 ms·
The biggest benefit I see with Async code is that a thread can go back to the thread pool while you as an example wait for a response from a HTTP request to an
by Zekio 7y ago
The biggest benefit I see with Async code is that a thread can go back to the thread pool while you as an example wait for a response from a HTTP request to an external service
- mushufasa 7y agoYes that's the definitive use case. Usually you have to explicitly describe the wait, so you need to write the code a certain way. I think OP was referring to the fact that threading / forking processes is usually just as effective, and you don't have to rewrite all your code from the ground up.