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
So a bit more issues with the event loop. Apparently, if we start the glib main loop from within a microtask callback, then all the microtasks created from within this loop will not resolve until the loop exits. I can see why it would do that but maybe we can try to find a way to solve it. Maybe the solution is using qode.
// top-level of the file, worksconstapp=newGtk.Application()app.on('activate',()=>{queueMicrotask(()=>console.log('called'))})app.run()
// within a microtask callback, does not workconstapp=newGtk.Application()app.on('activate',()=>{queueMicrotask(()=>console.log('called'))})Promise.resolve().then(()=>{app.run()})
The text was updated successfully, but these errors were encountered:
So a bit more issues with the event loop. Apparently, if we start the glib main loop from within a microtask callback, then all the microtasks created from within this loop will not resolve until the loop exits. I can see why it would do that but maybe we can try to find a way to solve it. Maybe the solution is using qode.
The text was updated successfully, but these errors were encountered: