Kleisli operator for Future[Option[_]] Monad.
Kleisli operator for Future[Option[_]] Monad. I knew it would come to this.
Given a Future, a lazy reference to a sequence of remaining futures and a predicate on T, tries each future in order and returns the first Future to both succeed and pass the supplied predicate.
If the f has Future(None) return None, otherwise flatMap the value with the given function
Push the outer future on a result into all the values Useful for putting finagle memcache into the same API as storehaus.
remove the outer wrapping of a Future and push it onto the values.
Use the given future collector to produce a single Future of Map from a Map with Future values
Given a Seq of equivalent Futures, return the first non-exceptional that passes the supplied predicate.
Given a Seq of equivalent Futures, return the first non-exceptional that passes the supplied predicate. If all futures fail to succeed or pass the predicate, the final future to complete will be returned.
Some combinators on Futures or Seqs of Futures that are used internally These should arguably exist in util-core.