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
We feel that this should work in both development and production similarly.
Discuss spec change for not having to wait for 3 ticks for resolving @littledan@MayaLekova - effectively we want to guarantee that at least 1 tick happens and that you can't observe resolution synchronously.
Figure out how to propose actual spec change.
Gather user data about expectations related to waiting 3 ticks.
Poll users who have been transpiling (which does not have this behaviour).
Hooks or spec change for throws in the new Promise constructor - where either we provide a hook for multiple resolutions users can use or to change the behavior of the promise constructor to only resolve after the constructor has run (still synchronously, but any throws take precedence). https://github.com/nodejs/promise-use-cases/pull/21/files - cc @getify
Hooks that enable detection of multiple resolution of promises in the new Promise constructor
Hooks for when an await happens so libraries can/might be able to hook with it. (Would be cool if the hook would allow some form of interception?)
Expose %RunMicrotasks under a --dangerous-only-for-experimentation-this-will-burn-your-house-asynchronously. Experiment with how people are using it and based on that propose further action items.
Node.js should have a better unhandled rejection story
Would love to get you on board getting this working to your satisfaction and have you provide criteria for this working in an acceptable way given the constraints promises already impose @misterdjules
throws in thenew Promiseconstructor - where either we provide a hook for multiple resolutions users can use or to change the behavior of the promise constructor to onlyresolveafter the constructor has run (still synchronously, but anythrows take precedence).https://github.com/nodejs/promise-use-cases/pull/21/files - cc @getify
new Promiseconstructorawaithappens so libraries can/might be able to hook with it. (Would be cool if the hook would allow some form of interception?)%RunMicrotasksunder a--dangerous-only-for-experimentation-this-will-burn-your-house-asynchronously. Experiment with how people are using it and based on that propose further action items.