protected ListContainerInstancesResponse list(String nextToken) {
    CompletableFuture<ListContainerInstancesResponse> r =
        ecs.listContainerInstances(listRequest.copy().nextToken(nextToken).build());
    return r.join();
  }
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