Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add a flag for not collecting failed promises #255

Closed
mjackson opened this Issue · 1 comment

2 participants

@mjackson

A small optimization might be to add a flag that instructs Q to not collect failed promises. While this behavior is totally useful in development, it can slow things down. @domenic and I discussed this briefly at HTML5 DevConf this week.

@kriskowal Is this something you'd be ok with?

@kriskowal
Owner

@mjijackson Yeah, I would entertain this.

@domenic domenic referenced this issue from a commit
@domenic domenic Add nice unhandled-rejection tracking API as per #265.
- Closes #244 and closes #245 since `Q.stopUnhandledRejectionTracking()` removes the `process.on("exit", ...)` handler.
- Closes #255 since `Q.stopUnhandledRejectionTracking()` prevents any storage or tracking of unhandled rejections or unhandled rejection reasons.
- Closes #265 via the new `Q.getUnhandledReasons()` and `Q.resetUnhandledRejections()` APIs, which are useful mainly for testing and diagnostics.
- Closes #278 by slightly reordering the code inside `trackRejection`.
4c36a7e
@domenic domenic closed this issue from a commit
@domenic domenic Add nice unhandled-rejection tracking API as per #265.
- Closes #244 and closes #245 since `Q.stopUnhandledRejectionTracking()` removes the `process.on("exit", ...)` handler.
- Closes #255 since `Q.stopUnhandledRejectionTracking()` prevents any storage or tracking of unhandled rejections or unhandled rejection reasons.
- Closes #265 via the new `Q.getUnhandledReasons()` and `Q.resetUnhandledRejections()` APIs, which are useful mainly for testing and diagnostics.
- Closes #278 by slightly reordering the code inside `trackRejection`.
9dcf462
@domenic domenic closed this in 9dcf462
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.