PATH: //opt/alt/alt-nodejs10/root/lib/node_modules/npm/node_modules/asynckit/lib
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 abort.js
↓
X
📄 async.js
↓
X
📄 defer.js
↓
X
📄 iterate.js
↓
X
📄 readable_asynckit.js
↓
X
📄 readable_parallel.js
↓
X
📄 readable_serial.js
↓
X
📄 readable_serial_ordered.js
↓
X
📄 state.js
↓
X
📄 streamify.js
↓
X
📄 terminator.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: abort.js
// 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](); } }
SIMPAN PERUBAHAN