private <T> Task<T> unwind(Try<T> result) {
    if (result.isFailed()) {
      return Task.failure(result.getError());
    } else {
      return Task.value(result.get());
    }
  }
private <T> Task<T> unwind(Try<T> result) {
    if (result.isFailed()) {
      return Task.failure(result.getError());
    } else {
      return Task.value(result.get());
    }
  }
private < T > Task < T > unwind ( Try < T > result ) { if ( result . isFailed ( ) ) { return Task . failure ( result . getError ( ) ) ; } else { return Task . value ( result . get ( ) ) ; } }
Unwinds the result from {@link Task#toTry()}.

@return task with the raw result.
Unwinds the result from { @link Task#toTry () } .