tokio::runtime::task::waker

Function waker_ref

Source
pub(super) fn waker_ref<S>(header: &NonNull<Header>) -> WakerRef<'_, S>
where S: Schedule,
Expand description

Returns a WakerRef which avoids having to preemptively increase the refcount if there is no need to do so.