refactor: 將 node action 重建為 docker action

This commit is contained in:
2026-08-06 17:26:02 +00:00
parent 310cf493ef
commit e31e15dac7
457 changed files with 80807 additions and 352 deletions
+26
View File
@@ -0,0 +1,26 @@
module.exports = defer;
/**
* Runs provided function on next iteration of the event loop
*
* @param {function} fn - function to run
*/
function defer(fn)
{
var nextTick = typeof setImmediate == 'function'
? setImmediate
: (
typeof process == 'object' && typeof process.nextTick == 'function'
? process.nextTick
: null
);
if (nextTick)
{
nextTick(fn);
}
else
{
setTimeout(fn, 0);
}
}