Skip to main content

block_on_local

Function block_on_local 

pub fn block_on_local<F>(
    runtime: &LocalRuntime,
    future: F,
) -> <F as Future>::Output
where F: Future + 'static, <F as Future>::Output: 'static,
Available on crate features dial9 and tokio only.
Expand description

block_on for a [tokio::runtime::LocalRuntime]: runs future as a traced task so its polls are recorded.

§Panics

Resumes the future’s panic on the calling thread.