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
I'm not very familiar with txiki.js or libuv, but I think it might be because txiki.js executes promise jobs in the uv_check phase, meaning promise jobs run in each loop iteration rather than after each event callback.
The text was updated successfully, but these errors were encountered:
zizifn
changed the title
Promise executed order is not same as browser and Node.js
Promise execute order is not same as browser and Node.js
Jan 13, 2025
Background
Promise queue or Microtask queue will exhausted in the end of each event callback.
Code
Browser
txiki.js
I'm not very familiar with txiki.js or libuv, but I think it might be because txiki.js executes promise jobs in the uv_check phase, meaning promise jobs run in each loop iteration rather than after each event callback.
The text was updated successfully, but these errors were encountered: