Lines Matching defs:stage
4038 for (CompletionStage<Integer> stage : stages) {
4040 method.invoke(stage, args);
4130 * Completion of a toCompletableFuture copy of a minimal stage
4147 static <T> CompletableFuture<T> toCompletableFuture(CompletionStage<T> stage) {
4149 stage.handle((T t, Throwable ex) -> {
4158 static <T> T join(CompletionStage<T> stage) {
4159 return toCompletableFuture(stage).join();
4163 * Joining a minimal stage "by hand" works
4490 // static <U> U join(CompletionStage<U> stage) {
4492 // stage.whenComplete((v, ex) -> {
4498 // static <U> boolean isDone(CompletionStage<U> stage) {
4500 // stage.whenComplete((v, ex) -> {
4506 // static <U> U join2(CompletionStage<U> stage) {
4507 // return stage.toCompletableFuture().copy().join();
4510 // static <U> boolean isDone2(CompletionStage<U> stage) {
4511 // return stage.toCompletableFuture().copy().isDone();