pub async fn future_with_timeout_with_priority<T>(
priority: Priority,
timeout: Duration,
fut: impl Future<Output = T>
) -> impl Future<Output = Result<T, FutureWithTimeoutError>>Expand description
Add a timeout to a Future.
The Future must be spawned on an Executor backed by a glib::MainContext.