Function glib::source_futures::timeout_future
source ยท pub fn timeout_future(
value: Duration,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>
Expand description
Create a Future
that will resolve after the given number of milliseconds.
The Future
must be spawned on an Executor
backed by a glib::MainContext
.