- 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 aCall
that completes thecont
inuation.void
execute(Runnable runnable)
Schedules arunnable
for concurrent execution.TimerRef
setTimer(long millis, TimerFunction timer)
Schedulestimer
to execute aftermillis
milliseconds have elapsed.TaskRef
task(TaskFunction task)
Returns an uncuedTaskRef
bound to thetask
, which can later be used to cue thetask
.TimerRef
timer(TimerFunction timer)
Returns an unscheduledTimerRef
bound 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:Stage
Schedules arunnable
for concurrent execution.
-
task
public TaskRef task(TaskFunction task)
Description copied from interface:Stage
Returns an uncuedTaskRef
bound to thetask
, which can later be used to cue thetask
.
-
call
public <T> Call<T> call(Cont<T> cont)
Description copied from interface:Stage
Returns aCall
that completes thecont
inuation.
-
timer
public TimerRef timer(TimerFunction timer)
Description copied from interface:Schedule
Returns an unscheduledTimerRef
bound totimer
, which can later be used to scheduletimer
.
-
setTimer
public TimerRef setTimer(long millis, TimerFunction timer)
Description copied from interface:Schedule
Schedulestimer
to execute aftermillis
milliseconds have elapsed. Returns aTimerRef
that can be used to check the status of, reschedule, and canceltimer
.
-
-