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