MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / removeHandler

Function removeHandler

lib/utilities/will-interrupt-process.js:106–118  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls 1

teardownSignalsTrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…