Creates a failed future. @param ex the failure. @param the type of the failed future. @return the failed future.
(final Throwable ex)
| 177 | * @return the failed future. |
| 178 | */ |
| 179 | public static <T> Future<T> exception(final Throwable ex) { |
| 180 | return new ExceptionFuture<>(ex); |
| 181 | } |
| 182 |
no outgoing calls