MCPcopy Create free account
hub / github.com/nodejs/node / setCLS

Function setCLS

benchmark/async_hooks/async-resource-vs-destroy.js:44–51  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

42 }
43
44 function setCLS(state) {
45 const resource = executionAsyncResource();
46 if (!resource[cls]) {
47 resource[cls] = { state };
48 } else {
49 resource[cls].state = state;
50 }
51 }
52
53 function init(asyncId, type, triggerAsyncId, resource) {
54 const cr = executionAsyncResource();

Callers 2

getServeAwaitFunction · 0.85
getServeCallbacksFunction · 0.85

Calls 4

executionAsyncResourceFunction · 0.85
executionAsyncIdFunction · 0.85
setMethod · 0.45
getStoreMethod · 0.45

Tested by

no test coverage detected