1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(feature = "alloc")] pub(crate) mod task { use alloc::sync::Arc; pub trait Wake { fn wake(self: Arc<Self>); #[cfg(since = "1.41")] fn wake_by_ref(self: &Arc<Self>) { self.clone().wake(); } } }