mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #11575 from Strate/bluebird_document_suppress_unhandled_rejections
[bluebird] document .suppressUnhandledRejections
This commit is contained in:
Vendored
+7
@@ -317,6 +317,13 @@ class Bluebird<R> implements Bluebird.Thenable<R>, Bluebird.Inspection<R> {
|
||||
*/
|
||||
cancel(): void;
|
||||
|
||||
/**
|
||||
* Basically sugar for doing: somePromise.catch(function(){});
|
||||
*
|
||||
* Which is needed in case error handlers are attached asynchronously to the promise later, which would otherwise result in premature unhandled rejection reporting.
|
||||
*/
|
||||
suppressUnhandledRejections(): void;
|
||||
|
||||
/**
|
||||
* Start the chain of promises with `Promise.try`. Any synchronous exceptions will be turned into rejections on the returned promise.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user