schedule Task
open fun scheduleTask(task: Runnable, delay: TaskTime, period: TaskTime, executionType: ExecutionType): Task
Schedules the given task to be executed by the scheduler after the given delay, with a period between executions of period, and with the given executionType.
This is a shortcut to building a task with buildTask.
Return
the scheduled task
Parameters
task
the task to execute
delay
the initial delay before execution
period
the delay between subsequent executions
execution Type
the execution type of the task
Schedules the given task to be executed by the scheduler after the given delay, with a period between executions of period.
This is equivalent to scheduleTask, except that the execution type is chosen by the implementation.
Return
the scheduled task
Parameters
task
the task to execute
delay
the initial delay before execution
period
the delay between subsequent executions