cancel
cancel: (Future, boolean) -> booleanCancel the task: it will not run again. false when it had already run (a one-shot) or was cancelled. A task runs on the client thread, never beside this call, so there is nothing to interrupt.
| Method | Returns | Description |
|---|---|---|
cancel(boolean) | boolean | Cancel the task: it will not run again. false when it had already run (a one-shot) or was cancelled. A task runs on the client thread, ne… |
isCancelled() | boolean | Whether it was cancelled before it completed. |
isDone() | boolean | Whether it completed: a one-shot that ran, or any task cancelled. |
cancelcancel: (Future, boolean) -> booleanCancel the task: it will not run again. false when it had already run (a one-shot) or was cancelled. A task runs on the client thread, never beside this call, so there is nothing to interrupt.
isCancelledisCancelled: (Future) -> booleanWhether it was cancelled before it completed.
isDoneisDone: (Future) -> booleanWhether it completed: a one-shot that ran, or any task cancelled.