submit
submit: (ExecutorService, () -> ()) -> ScheduledFutureRun task at the next invoke point; the future answers isDone() once it ran and cancel(...) before. After shutdown() it is RejectedExecutionException.
| Method | Returns | Description |
|---|---|---|
submit(() -> ()) | ScheduledFuture | Run task at the next invoke point; the future answers isDone() once it ran and cancel(...) before. After shutdown() it is `Rejected… |
shutdown() | () | Refuse new tasks and cancel the periodic ones; delayed one-shots still run, as ScheduledThreadPoolExecutor's do by default. |
isShutdown() | boolean | Whether shutdown() (or shutdownNow()) was called. |
isTerminated() | boolean | Whether it is shut down and no task of it is left to run. |
submitsubmit: (ExecutorService, () -> ()) -> ScheduledFutureRun task at the next invoke point; the future answers isDone() once it ran and cancel(...) before. After shutdown() it is RejectedExecutionException.
shutdownshutdown: (ExecutorService) -> ()Refuse new tasks and cancel the periodic ones; delayed one-shots still run, as ScheduledThreadPoolExecutor's do by default.
isShutdownisShutdown: (ExecutorService) -> booleanWhether shutdown() (or shutdownNow()) was called.
isTerminatedisTerminated: (ExecutorService) -> booleanWhether it is shut down and no task of it is left to run.