Files
report/backend/node_modules/@apidevtools/json-schema-ref-parser/lib/util/next.ts
T
2026-07-19 03:44:35 +09:00

14 lines
324 B
TypeScript

function makeNext() {
if (typeof process === "object" && typeof process.nextTick === "function") {
return process.nextTick;
} else if (typeof setImmediate === "function") {
return setImmediate;
} else {
return function next(f: () => void) {
setTimeout(f, 0);
};
}
}
export default makeNext();