typelevel/scalaz-contrib — pull request #15 by puffnfresh (2013-08-25 21:33:08+00:00)
Title: Add forkIO for Future

Signature:

def forkIO[A](a: IO[A])(implicit ec: ExecutionContext)

Usage:

import scalaz.contrib.std.scalaFuture.forkIO
import scalaz.effect.IO

// Non-determinism
val program = for {
_ <- forkIO(IO.putStrLn("Hello"))
_ <- forkIO(IO.putStrLn("World"))
_ <- forkIO(IO.putStrLn("!"))
} yield ()

---

This adds a dependency on scalaz-effect.