Function std::task::local_waker

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.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.