Picks the first successful computation. It will try first at first, but if first throws an error, it discards the error and uses second.
first
second
Note that the arguments of Promises are reversed for partial application with Cats.
Promise
Cat
The first attempt.
The first successful computation.
Picks the first successful computation. It will try
firstat first, but iffirstthrows an error, it discards the error and usessecond.Note that the arguments of
Promises are reversed for partial application withCats.