* Removes any handlers to `unhandledRejection` events for the current * process. This does not modify the state of the `this.handlers` set. * @returns {undefined}
()
| 58 | * @returns {undefined} |
| 59 | */ |
| 60 | unhandle() { |
| 61 | if (this.catcher) { |
| 62 | process.removeListener('unhandledRejection', this.catcher); |
| 63 | this.catcher = false; |
| 64 | |
| 65 | Array.from(this.handlers.values()).forEach(wrapper => |
| 66 | this.logger.unpipe(wrapper) |
| 67 | ); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * TODO: add method description |
no outgoing calls
no test coverage detected