Casts the result of this future. Avoid this method since it's unsafe and can produce a future failed with a ClassCastException. @return the casted future.
()
| 599 | * @return the casted future. |
| 600 | */ |
| 601 | @SuppressWarnings("unchecked") |
| 602 | default <R> Future<R> unsafeCast() { |
| 603 | return (Future<R>) this; |
| 604 | } |