Function waker_ref

Source
pub(crate) unsafe fn waker_ref<W>(wake: &Arc<W>) -> WakerRef<'_>
where W: ArcWake,
Expand description

Copy of future_task::waker_ref without W: 'static bound.

ยงSafety

The caller must guarantee that use-after-free will not occur.