[−][src]Function cala_core::os::web::block_on
pub fn block_on<F: Future<Output = ()> + 'static>(main: F)
WASM is non-blocking, but after the function returns, the Future will be running on the main (and only) thread inside the JavaScript executor.