2 ms·
I wish I understood this better. If you're writing code in the same style whether it's async or not, how can you manage return values and reason about flow?
by chrisweekly 6y ago
I wish I understood this better. If you're writing code in the same style whether it's async or not, how can you manage return values and reason about flow?
- balfirevic 6y agoThe flow is sequential, as laid out in the code, the same as for any old-fashioned code. It has the same semantics as the non-async code. The only difference is that OS thread can be released to do some other work while you wait for IO operation to finish.