Interface AsyncScheduler
- All Superinterfaces:
Scheduler
A
Scheduler
that can run tasks asynchronously-
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncScheduler
get
(org.bukkit.plugin.Plugin plugin) Get theAsyncScheduler
for the given pluginRun a task laterdefault Task
Run a task repeatedlyrunTimer
(BooleanSupplier runnable, long delay, long period, TimeUnit unit) Run a task repeatedly
-
Method Details
-
get
Get theAsyncScheduler
for the given plugin- Parameters:
plugin
- the plugin- Returns:
- the scheduler
-
runLater
Run a task later- Parameters:
runnable
- the runnabledelay
- the delayunit
- the unit of the delay- Returns:
- the task
-
runTimer
Run a task repeatedly- Parameters:
runnable
- the runnable, returningtrue
to continue orfalse
to stopdelay
- the delayperiod
- the periodunit
- the unit of the delay and period- Returns:
- the task
-
runTimer
Run a task repeatedly- Parameters:
runnable
- the runnabledelay
- the delayperiod
- the periodunit
- the unit of the delay and period- Returns:
- the task
-