fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-11 21:33:34 +00:00
parent 3821799070
commit 9f599e79a1

View File

@ -33,7 +33,7 @@ export let delayForRandom = async <T>(
export class Timeout<T> {
promise: Promise<T>;
private _deferred: smartpromise.Deferred<T>;
private _timeout: any;
private _timeout;
private _cancelled: boolean = false;
private timeoutInMillis: number;
@ -63,7 +63,7 @@ export class Timeout<T> {
*/
public cancel() {
this._cancelled = true;
this.makeUnrefed();
clearTimeout(this._timeout);
}
public getTimeLeft() {