✏️ 编辑:setTimeoutUnref.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/memfs/lib/setTimeoutUnref.js
大小:493 B · 修改:2022-11-21 20:10:16 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
"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) { var 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;
💾 保存
取消
保存为 UTF-8,换行统一为 LF