You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let(sender,mut receiver) = futures::channel::mpsc::unbounded();// Create widgets and connect signals to clones of the sender
glib::MainContext::default().spawn_local(asyncmove{// Capture widgets and application state in this main async functionwhileletSome(event) = receiver.next().await{match event {}}});
For the GTK application, since it already spawns an async runtime for handling GTK signals
The text was updated successfully, but these errors were encountered:
mmstick
changed the title
Use glib's native async support for handling events instead of a glib channel
Use glib's native async support for handling events instead of a sync glib channel
Aug 24, 2020
Basically
For the GTK application, since it already spawns an async runtime for handling GTK signals
The text was updated successfully, but these errors were encountered: