@tripod311/leg5
Version:
Zero-dependency concurrent function execution for Node.js using worker threads.
20 lines (19 loc) • 458 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class AbortContext {
constructor() {
this._aborted = false;
this._controller = new AbortController();
}
get aborted() {
return this._aborted;
}
get controller() {
return this._controller;
}
reset() {
this._aborted = false;
this._controller = new AbortController();
}
}
exports.default = AbortContext;