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

Function markActive

lib/diagnostics_channel.js:70–75  ·  view source on GitHub ↗
(channel)

Source from the content-addressed store, hash-verified

68}
69
70function markActive(channel) {
71 // eslint-disable-next-line no-use-before-define
72 ObjectSetPrototypeOf(channel, ActiveChannel.prototype);
73 channel._subscribers = [];
74 channel._stores = new SafeMap();
75}
76
77function maybeMarkInactive(channel) {
78 // When there are no more active subscribers or bound, restore to fast prototype.

Callers 2

subscribeMethod · 0.85
bindStoreMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…