Skip to main content

run_inline

Function run_inline 

Source
pub fn run_inline<F: Future>(fut: F, site: &str) -> Result<F::Output>
Expand description

Poll fut once with a no-op waker: for hosts whose every future is ready on the first poll (a thread that sleeps and parks inline). A pending poll is a bug in such a host, reported as PendedInline naming site, never a hang.

ยงErrors

PendedInline.