Cell API
    Preparing search index...

    Function firstParallel

    • Returns the result of the first promise that matches the "shouldStop", running all promises in parallel. Supports cancelable promises.

      Type Parameters

      • T

      Parameters

      • promiseList: Promise<T>[]
      • OptionalshouldStop: (t: T) => boolean
      • OptionaldefaultValue: T

      Returns Promise<T | undefined>

    • Returns the result of the first promise that matches the "shouldStop", running all promises in parallel. Supports cancelable promises.

      Type Parameters

      • T
      • R

      Parameters

      • promiseList: Promise<T>[]
      • shouldStop: (t: T) => t is R
      • OptionaldefaultValue: R

      Returns Promise<R | undefined>