Function tarantool::fiber::start_async
source · pub fn start_async<'f, F, T>(f: F) -> JoinHandle<'f, T>where
F: Future<Output = T> + 'f,
T: 'f,
Expand description
Async version of start
.
ⓘ
use tarantool::fiber;
let jh = fiber::start_async(async {
// do some async work in another fiber
do_work().await
});
jh.join().unwrap();