[−][src]Function futures::task::local_waker_from_nonlocal
pub fn local_waker_from_nonlocal<W>(wake: Arc<W>) -> LocalWaker where
W: 'static + Wake,
🔬 This is a nightly-only experimental API. (futures_api
)
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.