void collectAsyncResults(List<HealthCheckMetadata> healthCheckDescriptors, Collection<HealthCheckExecutionResult> results) {
Iterator<HealthCheckMetadata> checksIt = healthCheckDescriptors.iterator();
Set<ExecutionResult> asyncResults = new TreeSet<ExecutionResult>();
while (checksIt.hasNext()) {
HealthCheckMetadata healthCheckMetadata = checksIt.next();
if (isAsync(healthCheckMetadata)) {
ExecutionResult result = asyncResultsByDescriptor.get(healthCheckMetadata);
if (result == null) {
result = new ExecutionResult(healthCheckMetadata, new Result(Result.Status.INFO, "Async Health Check with cron expression '"
+ healthCheckMetadata.getAsyncCronExpression() + "' has not yet been executed."), 0L);
asyncResults.add(result);
}
asyncResults.add(result);
// remove from HC collection to not execute the check in HealthCheckExecutorImpl