Skip to main content

yield_now

Function yield_now 

Source
pub async fn yield_now()
Expand description

Attempts to provide a yield for executor currently in use.

There doesn’t appear to be one available as yet for wasm_bindgen_futures so a workaround taken from https://github.com/rustwasm/wasm-bindgen/discussions/3476 is used