@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
12 lines • 391 B
TypeScript
/**
* In some asynchronous scenarios, we don't know if a value has been initialized when we need it.
* This class allows you to wait for the value to be defined.
*/
export declare class TgdValueWaitable<T> {
private _value;
private resolvers;
get value(): T | undefined;
set value(v: T | undefined);
waitUntiDefined(): Promise<T>;
}
//# sourceMappingURL=value.d.ts.map