* Remove process interruption handler * * If there are no remaining handlers after removal * then clean up all the process interruption signal listeners * * @private * @method removeHandler * @param {function} cb Callback to be removed
(cb)
| 104 | * @param {function} cb Callback to be removed |
| 105 | */ |
| 106 | removeHandler(cb) { |
| 107 | let index = handlers.indexOf(cb); |
| 108 | if (index < 0) { |
| 109 | return; |
| 110 | } |
| 111 | |
| 112 | handlers.splice(index, 1); |
| 113 | captureExit.offExit(cb); |
| 114 | |
| 115 | if (handlers.length === 0) { |
| 116 | teardownSignalsTrap(); |
| 117 | } |
| 118 | }, |
| 119 | }; |
| 120 | |
| 121 | /** |
nothing calls this directly
no test coverage detected
searching dependent graphs…