gtk4-rs icon indicating copy to clipboard operation
gtk4-rs copied to clipboard

Add an example that makes use of async operations

Open bilelmoussaoui opened this issue 3 years ago • 2 comments

Something like sending a web request to retrieve some data and then display it. Maybe using tokio or some other async runtime.

bilelmoussaoui avatar Jan 25 '22 16:01 bilelmoussaoui

There's an example in gtk-rs-core and I think also an example for dialogs here?

Maybe using tokio or some other async runtime.

That will involve a bit of boilerplate for the cross-runtime communication then but probably a good idea to have an example for that.

sdroege avatar Jan 25 '22 16:01 sdroege

There's an example in gtk-rs-core and I think also an example for dialogs here?

There is indeed, but it doesn't show how to integrate with a window without blocking the main thread

bilelmoussaoui avatar Jan 25 '22 16:01 bilelmoussaoui

I wrote it example https://github.com/gtk-rs/gtk4-rs/pull/1578 but CI falls because not found openssl dependency https://github.com/gtk-rs/gtk4-rs/actions/runs/7649773189/job/20844748624

Claudio-code avatar Jan 25 '24 10:01 Claudio-code