INNER CODE UNIT · Rust
call_async
xoriors/rencfs · src/async_util.rs:5
pub fn call_async<F>(f: F) -> F::Output
where
F: Future,
{
task::block_in_place(move || Handle::current().block_on(f))
}
INNER CODE UNIT · Rust
xoriors/rencfs · src/async_util.rs:5
pub fn call_async<F>(f: F) -> F::Output
where
F: Future,
{
task::block_in_place(move || Handle::current().block_on(f))
}