SB-6.3-BETA 2

Added Moderation
Added Node Modules
This commit is contained in:
ItzEmerald committed 2021-03-27 16:22:19 +00:00
1 parent 60daab82d2
commit 09aad61cfe
385 files changed
+78314 -20

No files matched your search

+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);
}
}