[−][src]Function futures_util::task::local_waker_ref
pub unsafe fn local_waker_ref<W>(wake: &Arc<W>) -> LocalWakerRef where
W: Wake + 'static, Creates a reference to a LocalWaker
from a local wake.
Safety
This function requires that wake is "local" (created on the current thread).
The resulting LocalWaker will call
wake.wake_local()
when awoken, and will call wake.wake() if
awoken after being converted to a Waker.