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

Method subscribe

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

Source from the content-addressed store, hash-verified

367 }
368
369 subscribe(handlers) {
370 for (let i = 0; i < boundedEvents.length; ++i) {
371 const name = boundedEvents[i];
372 if (!handlers[name]) continue;
373
374 this[name]?.subscribe(handlers[name]);
375 }
376 }
377
378 unsubscribe(handlers) {
379 let done = true;

Callers

nothing calls this directly

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected