@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.
17 lines (16 loc) • 387 B
TypeScript
/**
* A class that lazily initializes a value given a factory function.
*/
export declare class Lazy<T> {
private _factory;
private _value;
/**
* Creates a new instance of the Lazy class.
* @param factory A function that creates the value.
*/
constructor(factory: () => T);
/**
* Gets the lazily initialized value.
*/
get value(): T;
}