[][src]Function async_task::waker_fn

pub fn waker_fn<F: Fn() + Send + Sync + 'static>(f: F) -> Waker

Creates a waker from a wake function.

The function gets called every time the waker is woken.