Interface Stage

  • All Superinterfaces:
    Executor, Schedule
    All Known Implementing Classes:
    Theater

    public interface Stage
    extends Executor, Schedule
    An execution context in which to schedule tasks, create continuation calls, and set timers. Stage is thread safe.
    See Also:
    Theater
    • Method Detail

      • task

        TaskRef task​(TaskFunction task)
        Returns an uncued TaskRef bound to the task, which can later be used to cue the task.
      • call

        <T> Call<T> call​(Cont<T> cont)
        Returns a Call that completes the continuation.
      • execute

        void execute​(Runnable runnable)
        Schedules a runnable for concurrent execution.
        Specified by:
        execute in interface Executor