gtk-rs-core
gtk-rs-core copied to clipboard
[FEATURE REQUEST] IntoFuture for gio::Cancellable
Could we implement IntoFuture for &IsA<gio::Cancellable>
or at least for &gio::Cancellable
? It's the standardized way to convert something into a future. We could even deprecate .future()
in the former case.
It would allow to await cancellable directly, and not have to call a future method.
Maybe there are also other objects that could use an IntoFuture implementation, could be worth it to have a look.