MCPcopy Index your code
hub / github.com/nodejs/node / unsubscribe

Method unsubscribe

lib/diagnostics_channel.js:378–391  ·  view source on GitHub ↗
(handlers)

Source from the content-addressed store, hash-verified

376 }
377
378 unsubscribe(handlers) {
379 let done = true;
380
381 for (let i = 0; i < boundedEvents.length; ++i) {
382 const name = boundedEvents[i];
383 if (!handlers[name]) continue;
384
385 if (!this[name]?.unsubscribe(handlers[name])) {
386 done = false;
387 }
388 }
389
390 return done;
391 }
392
393 withScope(context = kEmptyObject) {
394 return new BoundedChannelScope(this, context);

Callers

nothing calls this directly

Calls 1

unsubscribeMethod · 0.45

Tested by

no test coverage detected