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

Function runMicrotask

lib/internal/process/task_queues.js:147–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147function runMicrotask() {
148 this.runInAsyncScope(() => {
149 const callback = this.callback;
150 try {
151 callback();
152 } finally {
153 this.emitDestroy();
154 }
155 });
156}
157
158const defaultMicrotaskResourceOpts = { requireManualDestroy: true };
159

Callers

nothing calls this directly

Calls 3

runInAsyncScopeMethod · 0.80
callbackFunction · 0.50
emitDestroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…