cosmic::iced_futures::futures::executor

Function block_on

source
pub fn block_on<F>(f: F) -> <F as Future>::Output
where F: Future,
Expand description

Run a future to completion on the current thread.

This function will block the caller until the given future has completed.

Use a LocalPool if you need finer-grained control over spawned tasks.