Expand description
Helpers for bridging GLib async/mainloop with Tokio.
Structsยง
- Cancel
OnDrop ๐
Functionsยง
- flatten_
anyhow ๐ - Flatten a nested Result<Result
>, defaulting to converting the error type to an anyhow::Error. See https://doc.rust-lang.org/std/result/enum.Result.html#method.flatten - run_
with_ cancellable - Call a faillible future, while monitoring
cancellableand return an error if cancelled. - spawn_
blocking_ cancellable - Wrapper for [
tokio::task::spawn_blocking] which provides a [gio::Cancellable] that will be triggered on drop. - spawn_
blocking_ cancellable_ flatten - A wrapper around
spawn_blocking_cancellablethat flattens nested results. - spawn_
blocking_ flatten - A wrapper around [
tokio::task::spawn_blocking] that flattens nested results.