Function alloc::task::local_waker_from_nonlocal [−][src]
pub fn local_waker_from_nonlocal<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 non-local wake.
This function is similar to local_waker, but does not require that wake
is local to the current thread. The resulting LocalWaker will call
wake.wake() when awoken.