-
Notifications
You must be signed in to change notification settings - Fork 0
Deferred class
Ron Buckton edited this page Jan 15, 2015
·
1 revision
Creates and controls the lifetime of a Promise.
export declare class Deferred<T> {
public promise: Promise<T>;
public resolve(value?: IPromise<T> | T): void;
public reject(reason: any): void;
}- T
- The type of the result produced by this Deferred.
- new Deferred()
- Creates a new instance of the Deferred class.
- promise
- Gets the promise associated with this Deferred instance.
- resolve(any?)
- Resolves the promise with the provided value.
- reject(any)
- Rejects the promise with the provided value.
- Supported Platforms: TBD
- Module: deferred
- Library: deferred.ts