tahamajs/NS / frontend /node_modules /tapable /lib /AsyncSeriesHook.js
tahamajs's picture
download
raw
854 Bytes
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const Hook = require("./Hook");
const HookCodeFactory = require("./HookCodeFactory");
class AsyncSeriesHookCodeFactory extends HookCodeFactory {
content({ onError, onDone }) {
return this.callTapsSeries({
onError: (i, err, next, doneBreak) => onError(err) + doneBreak(true),
onDone
});
}
}
const factory = new AsyncSeriesHookCodeFactory();
function COMPILE(options) {
factory.setup(this, options);
return factory.create(options);
}
function AsyncSeriesHook(args = [], name = undefined) {
const hook = new Hook(args, name);
hook.constructor = AsyncSeriesHook;
hook.compile = COMPILE;
hook._call = undefined;
hook.call = undefined;
return hook;
}
AsyncSeriesHook.prototype = null;
module.exports = AsyncSeriesHook;

Xet Storage Details

Size:
854 Bytes
·
Xet hash:
29169eefb57f46797e650acb31d261b1ff1448964cafe0fafd27297a31295acf

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.