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
The result I get after the callback is 1 3. It completely skips 2. Every time I try and call a function outside of the callback it just ignores it. I have no errors or warnings. Any idea what is going on?
The text was updated successfully, but these errors were encountered:
To be more specific, it's when I'm calling the resolve of a promise. For some reason, everything inside the function runs, but the resolve won't run.
returnnewPromise((resolve,reject)=>{app.register_on_activate(ffi.Callback('void',[type.GtkWidgetPtr],(window)=>{console.log(1);resolve();console.log(3);});}).then(()=>{// never resolvesconsole.log(2);});
I am using a callback with node-ffi, but it is behaving strangely. Some code executes, and some code is just ignored. It's super weird.
The result I get after the callback is 1 3. It completely skips 2. Every time I try and call a function outside of the callback it just ignores it. I have no errors or warnings. Any idea what is going on?
The text was updated successfully, but these errors were encountered: