@return true if the task has an error, false otherwise.
()
| 128 | * @return {@code true} if the task has an error, {@code false} otherwise. |
| 129 | */ |
| 130 | public boolean isFaulted() { |
| 131 | synchronized (lock) { |
| 132 | return error != null; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * @return The result of the task, if set. {@code null} otherwise. |
no outgoing calls