code: public ExecutionResult withResult(Object result) {
      return new ExecutionResult(result, null, nonResult, waitNanos, true, true, successAll);
    }
docs: Returns a copy of the ExecutionResult with the {@code result} value, and completed and success set to true.