code: public static ExecutionResult failure(Throwable failure) {
      return new ExecutionResult(null, failure, false, 0, true, false, false);
    }
docs: Returns a an ExecutionResult with the {@code failure} set, {@code completed} true and {@code success} false.