@launchdarkly/js-client-sdk-common - v1.35.0
    Preparing search index...

    Interface LDWaitForInitializationOptions

    Options for the waitForInitialization method.

    interface LDWaitForInitializationOptions {
        timeout?: number;
    }

    Hierarchy (View Summary)

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

    5 seconds