Interface LDWaitForInitializationOptions

Options for the waitForInitialization method.

Hierarchy

  • LDWaitForInitializationOptions

Properties

Properties

timeout?: number

The timeout duration in seconds to wait for initialization before resolving the promise. If exceeded, the promise will resolve to a LDWaitForInitializationTimeout object.

If no options are specified on the waitForInitialization, the default timeout of 5 seconds will be used.

Using a high timeout, or no timeout, is not recommended because it could result in a long delay when conditions prevent successful initialization.

A value of 0 will cause the promise to resolve without waiting. In that scenario it would be more effective to not call waitForInitialization.

Default

5 seconds

Generated using TypeDoc