pub async fn future_with_timeout_with_priority<T>(
    priority: Priority,
    timeout: Duration,
    fut: impl Future<Output = T>,
) -> Result<T, FutureWithTimeoutError>
Expand description

Add a timeout to a Future.

The Future must be spawned on an Executor backed by a glib::MainContext.