Files
starface-outlook-sync-addin/node_modules/@jsonjoy.com/fs-node-utils/lib/setTimeoutUnref.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

14 lines
538 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* `setTimeoutUnref` is just like `setTimeout`,
* only in Node's environment it will "unref" its macro task.
*/
function setTimeoutUnref(callback, time, args) {
const ref = setTimeout.apply(typeof globalThis !== 'undefined' ? globalThis : global, arguments);
if (ref && typeof ref === 'object' && typeof ref.unref === 'function')
ref.unref();
return ref;
}
exports.default = setTimeoutUnref;
//# sourceMappingURL=setTimeoutUnref.js.map