X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/asynckit/lib
lib
/
node_modules
/
npm
/
node_modules
/
asynckit
/
lib
/
ðŸ“
..
📄
abort.js
(497 B)
📄
async.js
(599 B)
📄
defer.js
(441 B)
📄
iterate.js
(1.75 KB)
📄
readable_asynckit.js
(1.57 KB)
📄
readable_parallel.js
(673 B)
📄
readable_serial.js
(655 B)
📄
readable_serial_ordered.js
(941 B)
📄
state.js
(941 B)
📄
streamify.js
(2.89 KB)
📄
terminator.js
(533 B)
Editing: async.js
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); }); } }; }
Upload File
Create Folder