Function std::task::local_waker_from_nonlocal[][src]

pub fn local_waker_from_nonlocal<W>(wake: Arc<W>) -> LocalWaker where
    W: 'static + Wake
🔬 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.