fix(core): update
This commit is contained in:
@@ -14,6 +14,12 @@ export class Deferred<T> {
|
||||
public reject: IReject;
|
||||
public status: TDeferredStatus;
|
||||
public claimed = false;
|
||||
public claim() {
|
||||
if (this.claimed) {
|
||||
throw new Error('Deferred already claimed');
|
||||
}
|
||||
this.claimed = true;
|
||||
}
|
||||
|
||||
public startedAt: number;
|
||||
public stoppedAt: number;
|
||||
|
||||
Reference in New Issue
Block a user