1 2 3 4 5 6 7 8 9 10 11
use async_runtime::LocalDomain; use std::rc::Rc; fn main() { let local = LocalDomain::new(); let spawner = local.spawner(); let captured = Rc::new(()); let _ = spawner.spawn(async move { drop(captured); }); }