private List<ContainerInstance> extractContainerInstancesFromResponses(
      List<DescribeContainerInstancesResponse> r) {
    return r.stream()
        .flatMap(this::extractContainerInstancesFromResponse)
        .collect(Collectors.toList());
  }
Wrapper around paginated ECS list/describe ContainerInstance APIs that efficiently describes all
tasks.
scheduling-manager/src/main/java/com/amazonaws/blox/scheduling/state/ContainerInstanceLister.java