Skip to content

Provide unhandled rejection detection #16

@benjamingr

Description

@benjamingr

Cross post of Automattic/mongoose#2918

Hi, most promise libraries (Bluebird, When, Q, Native promises in io.js and so on) support unhandled rejection detection which greatly simplifies dealing with errors in promises. Other libraries (RSVP, native promises in node.js) plan to add this feature.

Here is the proposal as currently implemented in most major libraries.

It could be great if Mongoose promises supported these hooks - I'd love to help with implementation guidance if you'd like it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions