| 605 | } |
| 606 | |
| 607 | final class FutureConstants { |
| 608 | |
| 609 | private FutureConstants() { |
| 610 | } |
| 611 | |
| 612 | static final Future<?> NEVER = new NoFuture<>(); |
| 613 | static final Future<? extends List<?>> EMPTY_LIST = Future.value(Collections.unmodifiableList(new ArrayList<>(0))); |
| 614 | static final Future<? extends Optional<?>> EMPTY_OPIONAL = Future.value(Optional.empty()); |
| 615 | } |
| 616 | |
| 617 | final class CollectPromise<T> extends Promise<List<T>> { |
| 618 |
nothing calls this directly
no test coverage detected
searching dependent graphs…