Skip to content

Instantly share code, notes, and snippets.

View derekjw's full-sized avatar

Derek Williams derekjw

  • FP Solutions Ltd
  • London, United Kingdom
View GitHub Profile
@derekjw
derekjw / MapFilter.scala
Created February 7, 2012 05:45
Future.filter() work-alike implemented via Filter.map() ... and works better
import akka.actor.ActorSystem
import akka.dispatch._
import akka.util.Duration
object MapFilter extends App {
implicit val system = ActorSystem()
val f = Future.traverse(List(Future(1 + 2), Future(11 + 2), Future(3 + 5))) {