fix(core): update
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@pushrocks/smartpromise', | ||||
|   version: '4.0.1', | ||||
|   version: '4.0.2', | ||||
|   description: 'simple promises and Deferred constructs' | ||||
| } | ||||
|   | ||||
| @@ -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