class Future

[source: scala/actors/Future.scala]

abstract class Future[+T](val ch : InputChannel[Any])
extends Responder[T] with () => T

A Future[T] is a function of arity 0 that returns a value of type T. Applying a future blocks the current actor (self) until the future's value is available.

A future can be queried to find out whether its value is already available.

Philipp Haller
Value Summary
protected var value : Option[Any]
Method Summary
abstract def isSet : Boolean
Methods inherited from Function0
apply (abstract), toString
Methods inherited from Responder
respond (abstract), foreach, map, flatMap, filter
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
protected var value : Option[Any]

Method Details
abstract def isSet : Boolean