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

Function newAsyncId

lib/internal/async_hooks.js:426–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

424// counter increment first. Since it's done the same way in
425// Environment::new_async_uid()
426function newAsyncId() {
427 return ++async_id_fields[kAsyncIdCounter];
428}
429
430function getOrSetAsyncId(object) {
431 if (ObjectPrototypeHasOwnProperty(object, async_id_symbol)) {

Callers 11

getNewAsyncIdFunction · 0.85
constructorMethod · 0.85
initAsyncResourceFunction · 0.85
trackPromiseFunction · 0.85
getOrSetAsyncIdFunction · 0.85
nextTickFunction · 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…