Skip to main content

block_on

Function block_on 

Source
pub fn block_on<F: Future>(future: F) -> F::Output
Expand description

Run future to completion on this thread, parking it between polls. The native shells use it for wgpu’s adapter/device requests and error scopes, which resolve without an executor (wgpu drives them itself). Native only: a browser tab cannot block.