scala.actors
object Futures

[source: `scala/actors/Futures.scala`]

`` `object` Futures
  `extends` AnyRef

  The `Futures` object contains methods that operate on Futures.

Version
  0.9.8
Author
  Philipp Haller

Method Summary
`def` | alarm (t : Long) : Future[Nothing]
`def` | awaitAll (timeout : Long, fts : Future[Any]*) : List[Option[Any]] Awaits all futures returning an option containing a list of replies, or timeouts returning `None`. Note that some of the futures might already have been awaited.
`def` | awaitEither [a, b](ft1 : Future[a], ft2 : Future[b]) : Any
`def` | future [T](body : => T) : Future[T]

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`` `def` future[T](body : => T) : Future[T]

`` `def` alarm(t : Long) : Future[Nothing]

`` `def` awaitEither[a, b](ft1 : Future[a], ft2 : Future[b]) : Any

`` `def` awaitAll(timeout : Long, fts : Future[Any]*) : List[Option[Any]]

  Awaits all futures returning an option containing a list of replies, or timeouts returning `None`.

  Note that some of the futures might already have been awaited.