orc.runtime.values
Interface Future

All Known Implementing Classes:
Add, And, AtoB, AtoI, BoolBinopSite, Buffer, Buffer.BufferInstance, Cat, Cell, Cell.CellInstance, ClassProxy, Closure, Cons, Constant, ConsValue, CxfWebservice, Div, DotSite, Equal, EvalSite, Field, GoogleCalendar, GoogleSearch, Greater, Greq, GroupCell, Head, If, Inequal, IsCons, IsNil, IsNone, IsSome, Leq, Less, Let, ListValue, Localhost, Mail, Mail.MailFilter, Mail.MailFolder, Mail.MailMessage, Mail.MailStore, Mail.MailTransport, MakeTimer, MethodProxy, Mod, Mult, MySpace, Nil, NilValue, None, NoneValue, Not, NumericComparisonSite, ObjectProxy, OptionValue, Or, PartialSite, PartialValue, Print, Println, Prompt, Random, Ref, Ref.RefInstance, Rtimer, SimpleSite, Site, Some, SomeValue, Sub, SyncChannel, SyncChannel.SyncChannelInstance, Tail, Thread, ThreadedObjectProxy, ThreadedSite, TupleValue, UMinus, UUID, Value, VariantSite, Webservice, XMPPConnection

public interface Future

Common interface for both bound values and unbound cells. Any class implementing Future can be forced, which will have one of two results: If the object is ready, it returns with the appropriate entity (a Callable or a Value). If it is not ready, it returns null. As an additional effect, the provided token is added to some wait set and will be activated when this object makes progress towards being bound.

Author:
dkitchin

Method Summary
 Value forceArg(Token t)
           
 Callable forceCall(Token t)
           
 

Method Detail

forceCall

Callable forceCall(Token t)
                   throws UncallableValueException
Throws:
UncallableValueException

forceArg

Value forceArg(Token t)