MCPcopy
hub / github.com/di-sukharev/opencommit / defer

Function defer

out/cli.cjs:24374–24381  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

24372 "node_modules/asynckit/lib/defer.js"(exports2, module2) {
24373 module2.exports = defer;
24374 function defer(fn) {
24375 var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
24376 if (nextTick) {
24377 nextTick(fn);
24378 } else {
24379 setTimeout(fn, 0);
24380 }
24381 }
24382 }
24383});
24384

Callers 1

asyncFunction · 0.85

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…