4 ms·
Because the sync function does not know what to do in case the async function doesn't return immediately and awaits something else. It can't block because that
by FranchuFranchu 5y ago
Because the sync function does not know what to do in case the async function doesn't return immediately and awaits something else. It can't block because that would block the whole thread, possibly including UI. Spawning a new thread and blocking there would break the whole point of async and would be expensive.
- endorphine 5y agoSo it's not that it _can't_ block while `await`ing, it's that it doesn't _want_ to block?