Function alloc::task::local_waker [−][src]
pub unsafe fn local_waker<W: Wake + 'static>(wake: Arc<W>) -> LocalWaker
🔬 This is a nightly-only experimental API. (futures_api
#50547)
futures in libcore are unstable
Creates a LocalWaker
from a local wake
.
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
.