[go: up one dir, main page]

Function block_on

Source
pub fn block_on<F: Future<Output = ()> + 'static>(main: F)
Expand description

WASM is non-blocking, but after the function returns, the Future will be running on the main (and only) thread inside the JavaScript executor.