- java.lang.Object
-
- swim.concurrent.SideStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Call<T>call(Cont<T> cont)Returns aCallthat completes thecontinuation.voidexecute(Runnable runnable)Schedules arunnablefor concurrent execution.TimerRefsetTimer(long millis, TimerFunction timer)Schedulestimerto execute aftermillismilliseconds have elapsed.TaskReftask(TaskFunction task)Returns an uncuedTaskRefbound to thetask, which can later be used to cue thetask.TimerReftimer(TimerFunction timer)Returns an unscheduledTimerRefbound totimer, which can later be used to scheduletimer.
-
-
-
Field Detail
-
stage
protected final Stage stage
-
-
Constructor Detail
-
SideStage
public SideStage(Stage stage)
-
-
Method Detail
-
execute
public void execute(Runnable runnable)
Description copied from interface:StageSchedules arunnablefor concurrent execution.
-
task
public TaskRef task(TaskFunction task)
Description copied from interface:StageReturns an uncuedTaskRefbound to thetask, which can later be used to cue thetask.
-
call
public <T> Call<T> call(Cont<T> cont)
Description copied from interface:StageReturns aCallthat completes thecontinuation.
-
timer
public TimerRef timer(TimerFunction timer)
Description copied from interface:ScheduleReturns an unscheduledTimerRefbound totimer, which can later be used to scheduletimer.
-
setTimer
public TimerRef setTimer(long millis, TimerFunction timer)
Description copied from interface:ScheduleSchedulestimerto execute aftermillismilliseconds have elapsed. Returns aTimerRefthat can be used to check the status of, reschedule, and canceltimer.
-
-