Function async_wasm_task::yield_now 
source · pub async fn yield_now()Expand description
Yields execution back to the JavaScript event loop.
To avoid blocking inside a long-running function, you have to yield to the async event loop regularly.
The async task may resume when it has its turn back. Meahwhile, any other pending tasks will be scheduled.