jmap-kit
    Preparing search index...
    • Adds a promise to the given Set while it is pending, and automatically removes it once the promise settles (resolves or rejects). Returns a promise that resolves or rejects with the same value as the input promise.

      Type Parameters

      • T

        The resolved value type of the promise.

      Parameters

      • set: Set<Promise<unknown>>

        Set to track the pending promise.

      • promise: Promise<T>

        The promise to track.

      Returns Promise<T>

      A promise that resolves or rejects with the same value as the input promise.