Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: more use-cases for promise events #3438

Closed
wants to merge 1 commit into from

Commits on Oct 19, 2015

  1. doc: more use-cases for promise events

    This adds an example of a semi-common promise pattern that could
    result in false-positive 'unhandledRejection' events, to help motivate
    why there is a dual 'rejectionHandled' event. I anticipate it being
    helpful to users who encounter 'unhandledRejection' events that do not
    stem from obvious typos such as the JSON.pasre example.
    
    Also cleans up the promise rejection tracking sample. By using a Map
    instead of array we can get O(1) deletion and actually record the errors.
    And, fixed indentation and backtick usage there to align with the rest of
    the document.
    domenic committed Oct 19, 2015
    Configuration menu
    Copy the full SHA
    6047052 View commit details
    Browse the repository at this point in the history