Completes this promise with a failure ex. @param ex the failure.
(final Throwable ex)
| 352 | * @param ex the failure. |
| 353 | */ |
| 354 | public final void setException(final Throwable ex) { |
| 355 | become(new ExceptionFuture<>(ex)); |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Raises an interrupt. |