1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::sync::Arc; mod cpu; mod io; mod test; use core::{ future::Future, pin::Pin, }; pub type Spawn = Arc<dyn Fn(Pin<Box<dyn Future<Output=()> + Send + 'static>>) + Send + Sync>;