gotk3 / gotk3-examples

164 stars 34 forks source link

Add example using gio.Task? #38

Closed decentral1se closed 5 months ago

decentral1se commented 5 months ago

The only example we have is using IdleAdd but if your async thing is doing more work it'll slow down the UI. Then you need to use gio.Task, source: https://discourse.gnome.org/t/what-is-the-proper-way-to-run-event-functions-without-freezing-the-main-thread/7499/2

decentral1se commented 5 months ago

https://github.com/gotk3/gotk3/issues/924?notification_referrer_id=NT_kwDOAB5i0bMxMDQ2NzI5NTkyMzoxOTkxMzc3#issuecomment-2084806201