@return true if the task was cancelled, false otherwise.
()
| 119 | * @return {@code true} if the task was cancelled, {@code false} otherwise. |
| 120 | */ |
| 121 | public boolean isCancelled() { |
| 122 | synchronized (lock) { |
| 123 | return cancelled; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * @return {@code true} if the task has an error, {@code false} otherwise. |
no outgoing calls