UNPKG

@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.

27 lines 661 B
/** * Wrapper class for promise with external resolve and reject. */ export class Deferred { /** * The resolve method of the promise associated with this deferred object. */ get resolve() { return this._resolve; } /** * The reject method of the promise associated with this deferred object. */ get reject() { return this._reject; } /** * Constructor for this deferred object. */ constructor() { this.promise = new Promise((resolve, reject) => { this._resolve = resolve; this._reject = reject; }); } } //# sourceMappingURL=deferred.js.map