4 ms·
That does answer my question, but I don't really understand why the distinction is made. To the caller, a function that spends time waiting and a function that
by slavik81 6y ago
That does answer my question, but I don't really understand why the distinction is made. To the caller, a function that spends time waiting and a function that spends the same time calculating both look the same, don't they?
- ubercow13 6y agoThe difference is that the runtime can schedule something else if the blocking is async. It looks the same as sync blocking to the caller, but not the scheduler. The point of async is you can write code that looks synchronous but is actually participating in cooperative multitasking.
- slavik81 6y agoI was expecting there to be more to it than that, but I understand their point now.