[−][src]Function aiur::with_runtime
pub fn with_runtime<C, R>(async_function: C) -> R where
C: for<'a> LifetimeLinkerFn<'a, R>,
Runs the async function and polls the returned future under aiur runtime. The function is
something like async fn foo(rt: &Runtime) -> Result
. Note, that
it currently does not work with the closures because of lifetime elision problem.