-
- All Known Subinterfaces:
MainStage
- All Known Implementing Classes:
AgentModel,AgentNode,MetaEdgeAgent,MetaHostAgent,MetaLaneAgent,MetaMeshAgent,MetaPartAgent,SideStage,Theater
public interface Stage extends Executor, Schedule
An execution context in which to schedule tasks, create continuation calls, and set timers.Stageis thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Call<T>call(Cont<T> cont)Returns aCallthat completes thecontinuation.voidexecute(Runnable runnable)Schedules arunnablefor concurrent execution.TaskReftask(TaskFunction task)Returns an uncuedTaskRefbound to thetask, which can later be used to cue thetask.
-
-
-
Method Detail
-
task
TaskRef task(TaskFunction task)
Returns an uncuedTaskRefbound to thetask, which can later be used to cue thetask.
-
-