Remove .gitignore and add dist and node_modules (LFS for .exe)

Made-with: Cursor
This commit is contained in:
Michael-A-Sloan committed 2026-03-11 17:40:35 -04:00
1 parent 1fc4db96c8
commit 048ab8b980
5819 files changed
+1357436 -2

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
var defer = require('./defer.js');
// API
module.exports = async;
/**
* Runs provided callback asynchronously
* even if callback itself is not
*
* @param {function} callback - callback to invoke
* @returns {function} - augmented callback
*/
function async(callback)
{
var isAsync = false;
// check if async happened
defer(function() { isAsync = true; });
return function async_callback(err, result)
{
if (isAsync)
{
callback(err, result);
}
else
{
defer(function nextTick_callback()
{
callback(err, result);
});
}
};
}