@mikuroxina/mini-fn
    Preparing search index...

    Function alt

    • Picks the first successful computation. It will try first at first, but if first throws an error, it discards the error and uses second.

      Note that the arguments of Promises are reversed for partial application with Cats.

      Type Parameters

      • T

      Parameters

      • first: Promise<T>

        The first attempt.

      Returns (second: Promise<T>) => Promise<T>

      The first successful computation.