forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
22
electron/node_modules/builder-util-runtime/out/CancellationToken.js
generated
vendored
22
electron/node_modules/builder-util-runtime/out/CancellationToken.js
generated
vendored
|
|
@ -3,6 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
exports.CancellationError = exports.CancellationToken = void 0;
|
||||
const events_1 = require("events");
|
||||
class CancellationToken extends events_1.EventEmitter {
|
||||
get cancelled() {
|
||||
return this._cancelled || (this._parent != null && this._parent.cancelled);
|
||||
}
|
||||
set parent(value) {
|
||||
this.removeParentCancelHandler();
|
||||
this._parent = value;
|
||||
this.parentCancelHandler = () => this.cancel();
|
||||
this._parent.onCancel(this.parentCancelHandler);
|
||||
}
|
||||
// babel cannot compile ... correctly for super calls
|
||||
constructor(parent) {
|
||||
super();
|
||||
|
|
@ -13,15 +22,6 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
this.parent = parent;
|
||||
}
|
||||
}
|
||||
get cancelled() {
|
||||
return this._cancelled || (this._parent != null && this._parent.cancelled);
|
||||
}
|
||||
set parent(value) {
|
||||
this.removeParentCancelHandler();
|
||||
this._parent = value;
|
||||
this.parentCancelHandler = () => this.cancel();
|
||||
this._parent.onCancel(this.parentCancelHandler);
|
||||
}
|
||||
cancel() {
|
||||
this._cancelled = true;
|
||||
this.emit("cancel");
|
||||
|
|
@ -44,7 +44,7 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
this.removeListener("cancel", cancelHandler);
|
||||
cancelHandler = null;
|
||||
}
|
||||
catch (ignore) {
|
||||
catch (_ignore) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ class CancellationToken extends events_1.EventEmitter {
|
|||
finallyHandler();
|
||||
return it;
|
||||
})
|
||||
.catch(e => {
|
||||
.catch((e) => {
|
||||
finallyHandler();
|
||||
throw e;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue