From 23563c7188e089929b60f9e10721c6fc43a220ff Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 22 Jun 2023 23:06:12 +0200 Subject: Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated) --- .../school/node_modules/asynckit/lib/async.js | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 includes/external/school/node_modules/asynckit/lib/async.js (limited to 'includes/external/school/node_modules/asynckit/lib/async.js') diff --git a/includes/external/school/node_modules/asynckit/lib/async.js b/includes/external/school/node_modules/asynckit/lib/async.js deleted file mode 100644 index 7f1288a..0000000 --- a/includes/external/school/node_modules/asynckit/lib/async.js +++ /dev/null @@ -1,34 +0,0 @@ -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); - }); - } - }; -} -- cgit