Obtain a cats.Comonad instance for com.twitter.util.Future.
Obtain a cats.Comonad instance for com.twitter.util.Future.
These instances use com.twitter.util.Await so should be avoided in production code. Likely use cases include tests, scrips, REPLs etc.
Obtain a cats.Eq instance for com.twitter.util.Future.
Obtain a cats.Eq instance for com.twitter.util.Future.
This version is only useful for successful futures: if one of the futures fails, the resulting exception will be thrown.
These instances use com.twitter.util.Await so should be avoided in production code. Likely use cases include tests, scrips, REPLs etc.
Obtain a cats.Eq instance for com.twitter.util.Future.
Obtain a cats.Eq instance for com.twitter.util.Future.
This version can also compare failed futures and thus requires an Eq[Throwable]
in scope.
These instances use com.twitter.util.Await so should be avoided in production code. Likely use cases include tests, scrips, REPLs etc.