- All Superinterfaces:
Executor,TaskExecutor,TickAdapter
- All Known Implementing Classes:
SimpleAsyncExecutor
Represents an async task executor.
-
Method Details
-
submit
Description copied from interface:TaskExecutorSubmit a task.- Specified by:
submitin interfaceTaskExecutor- Type Parameters:
V- the type of result the task returns- Parameters:
task- the task to submitticks- the delay before the task is executed in game ticks- Returns:
- the scheduled task as a future
-
repeat
Description copied from interface:TaskExecutorSchedule a repeating task.- Specified by:
repeatin interfaceTaskExecutor- Parameters:
task- the task to scheduleticks- the delay before the first task execution in game ticksperiodTicks- how often to repeat the task in game ticks- Returns:
- the scheduled task
-