UNPKG

excalibur

Version:

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

14 lines (13 loc) 357 B
/** * Future is a wrapper around a native browser Promise to allow resolving/rejecting at any time */ export declare class Future<T> { private _resolver; private _rejecter; private _isCompleted; constructor(); readonly promise: Promise<T>; get isCompleted(): boolean; resolve(value: T): void; reject(error: Error): void; }