Makes a fluent cast of a Task's result possible, avoiding an extra continuation just to cast the type of the result.
()
| 194 | * the type of the result. |
| 195 | */ |
| 196 | public <TOut> Task<TOut> cast() { |
| 197 | @SuppressWarnings("unchecked") |
| 198 | Task<TOut> task = (Task<TOut>) this; |
| 199 | return task; |
| 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Turns a Task<T> into a Task<Void>, dropping any result. |
nothing calls this directly
no outgoing calls
no test coverage detected