gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

[FEATURE REQUEST] IntoFuture for gio::Cancellable

Open felinira opened this issue 5 months ago • 1 comments

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.

felinira avatar Sep 22 '24 18:09 felinira