heim_common::prelude::futures::task

Function noop_waker_ref

Source
pub fn noop_waker_ref() -> &'static Waker
Expand description

Get a static reference to a Waker which does nothing when wake() is called on it.

ยงExamples

use futures::task::noop_waker_ref;
let waker = noop_waker_ref();
waker.wake_by_ref();