Interface ITaskScheduler


public interface ITaskScheduler
Interface for a class that can schedule tasks.

Tasks must implement the ITask interface. This allows a task consumer to run tasks on a specific thread if needed.

  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Implement this method to execute the given ITask with the desired context.
  • Method Details Link icon

    • schedule Link icon

      void schedule(@NotNull ITask task)
      Implement this method to execute the given ITask with the desired context.
      Parameters:
      task - the task to execute, cannot be null.