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

Function getCLS

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

Source from the content-addressed store, hash-verified

34 };
35
36 function getCLS() {
37 const resource = executionAsyncResource();
38 if (!resource[cls]) {
39 return null;
40 }
41 return resource[cls].state;
42 }
43
44 function setCLS(state) {
45 const resource = executionAsyncResource();

Callers 3

initFunction · 0.85
getServeAwaitFunction · 0.85
getServeCallbacksFunction · 0.85

Calls 5

executionAsyncResourceFunction · 0.85
executionAsyncIdFunction · 0.85
hasMethod · 0.65
getMethod · 0.65
getStoreMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…