executor

Methods
4
Fields
None

Getting one

executor

Methods

MethodReturnsDescription
schedule(() -> (), number, TimeUnit)ScheduledFutureRun command once, delay (in unit) from now. A negative delay is none.
scheduleAtFixedRate(() -> (), number, number, TimeUnit)ScheduledFutureRun command every period (in unit), first initialDelay from now; runs the game stalled through are made up back to back. A period m…
scheduleWithFixedDelay(() -> (), number, number, TimeUnit)ScheduledFutureRun command again delay (in unit) after each run ends, first initialDelay from now. A delay must be positive; the task is not run a…
shutdownNow(){() -> ()}Shut down and cancel every task not yet run, periodic ones included; the one-shot tasks that never ran, as an array of their functions.

Method details

scheduleAtFixedRate

scheduleAtFixedRate: (ScheduledExecutorService, () -> (), number, number, TimeUnit) -> ScheduledFuture

Run command every period (in unit), first initialDelay from now; runs the game stalled through are made up back to back. A period must be positive (IllegalArgumentException); the task is not run again after it raises.

shutdownNow

shutdownNow: (ScheduledExecutorService) -> {() -> ()}

Shut down and cancel every task not yet run, periodic ones included; the one-shot tasks that never ran, as an array of their functions.