Interface AsyncScheduler
- All Superinterfaces:
Scheduler
A
Scheduler that can run tasks asynchronously-
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncSchedulerget(org.bukkit.plugin.Plugin plugin) Get theAsyncSchedulerfor the given pluginRun a task laterdefault TaskRun a task repeatedlyrunTimer(BooleanSupplier runnable, long delay, long period, TimeUnit unit) Run a task repeatedly
-
Method Details
-
get
Get theAsyncSchedulerfor 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, returningtrueto continue orfalseto 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
-