orc.runtime
Class Kilim.Promise<V>

java.lang.Object
  extended by orc.runtime.Kilim.PausableCallable<V>
      extended by orc.runtime.Kilim.Promise<V>
Enclosing class:
Kilim

public static class Kilim.Promise<V>
extends Kilim.PausableCallable<V>

Wrap a callable in a lazy, concurrency-safe promise. FIXME: if the callable exits, waiters will NOT be notified.

Author:
quark

Constructor Summary
Kilim.Promise(Kilim.PausableCallable<V> thunk)
           
 
Method Summary
 V call()
           
 
Methods inherited from class orc.runtime.Kilim.PausableCallable
call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Kilim.Promise

public Kilim.Promise(Kilim.PausableCallable<V> thunk)
Method Detail

call

public V call()
       throws kilim.Pausable,
              java.lang.Exception
Specified by:
call in class Kilim.PausableCallable<V>
Throws:
kilim.Pausable
java.lang.Exception