From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- together/node_modules/asynckit/lib/abort.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 together/node_modules/asynckit/lib/abort.js (limited to 'together/node_modules/asynckit/lib/abort.js') diff --git a/together/node_modules/asynckit/lib/abort.js b/together/node_modules/asynckit/lib/abort.js deleted file mode 100644 index 114367e..0000000 --- a/together/node_modules/asynckit/lib/abort.js +++ /dev/null @@ -1,29 +0,0 @@ -// API -module.exports = abort; - -/** - * Aborts leftover active jobs - * - * @param {object} state - current state object - */ -function abort(state) -{ - Object.keys(state.jobs).forEach(clean.bind(state)); - - // reset leftover jobs - state.jobs = {}; -} - -/** - * Cleans up leftover job by invoking abort function for the provided job id - * - * @this state - * @param {string|number} key - job id to abort - */ -function clean(key) -{ - if (typeof this.jobs[key] == 'function') - { - this.jobs[key](); - } -} -- cgit