Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Action Items #26

Closed
Closed
@benjamingr

Description

@benjamingr
  • Promises need async stack traces in production.
    • V8 team to prototype @MayaLekova @bmeurer
    • 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).
    • Note: this is jQuery's "fault": https://gist.github.com/domenic/3889970
  • 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
    • @benjamingr to buy @BridgeAR a beer 🍻
    • Landing the PR and discussing the semverness cycle
    • Iron out all the semantics (video call or in person)
  • Document how promises work in Node.js
  • Priority 3: explore the possibility of exposing a hook for "scoping" an async function in order to deal with #expectations-4
  • Promises guide and common patterns as a Node.js guide.
  • Postmortem follow up discussion @benjamingr @yunong @mhdawson
    • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions