[go: up one dir, main page]

logo

Function pasts::block_on

source · []
pub fn block_on<F: Future<Output = ()> + 'static>(future: F)
Expand description

Run a future to completion on the current thread.

Platform-Specific Behavior

On WebAssembly, this function returns immediately instead of blocking because you’re not supposed to block in a web browser.