Function std::task::local_waker[][src]

pub unsafe fn local_waker<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 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.