2 ms·
async/await is about non-blocking, not IO specifically. You can use async to not block the current thread while IO completes, or use it not block while while so
by manigandham 7y ago
async/await is about non-blocking, not IO specifically. You can use async to not block the current thread while IO completes, or use it not block while while some CPU work completes (in this case on another thread while the UI is unblocked).
It's similar to using an event loop architecture for all UI actions.