@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
24 lines (23 loc) • 625 B
TypeScript
/**
* Wrapper class for promise with external resolve and reject.
*/
export declare class Deferred<T> {
/**
* The promise associated with this deferred object.
*/
readonly promise: Promise<T>;
private _resolve;
private _reject;
/**
* The resolve method of the promise associated with this deferred object.
*/
get resolve(): (value: T | PromiseLike<T>) => void;
/**
* The reject method of the promise associated with this deferred object.
*/
get reject(): (reason?: any) => void;
/**
* Constructor for this deferred object.
*/
constructor();
}