Member Junction
    Preparing search index...
    • Wraps a promise with a timeout. Rejects with a timeout error if the promise does not resolve within the specified duration.

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>

        The promise to wrap

      • timeoutMs: number

        Timeout in milliseconds

      • operationName: string

        Name of the operation for error messaging

      Returns Promise<T>

      The result of the promise

      Error if the operation times out