Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
The main thread handles UI work and input. Blocking it delays rendering and interaction, so expensive computation and blocking I/O need an appropriate execution context.
A long calculation, synchronous disk read, or blocking network call can prevent the UI from processing input and producing frames. Use asynchronous I/O and move CPU-heavy work to an appropriate worker context. Apply UI changes on the platform-required UI context. An async function does not by itself guarantee background execution; check where the expensive work actually runs and how cancellation is handled.