1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
mod reactor; #[cfg(test)] mod test { use futures::executor::LocalPool; #[test] fn test_future() { let mut local = LocalPool::new(); let out = local.run_until(async { std::thread::current().id() }); assert_eq!(std::thread::current().id(), out); } }