jdk Udiff test/java/util/concurrent/CompletableFuture/Basic.java (original) (raw)

Print this page


@@ -484,44 +484,44 @@ try { CompletableFuture cf3; CompletableFuture cf1 = supplyAsync(() -> 1); CompletableFuture cf2 = supplyAsync(() -> 2); cf3 = cf1.applyToEither(cf2, (x) -> { check(x == 1 || x == 2); return x; });


@@ -529,49 +529,49 @@ CompletableFuture cf3; int before = atomicInt.get(); CompletableFuture cf1 = supplyAsync(() -> 1); CompletableFuture cf2 = supplyAsync(() -> 2); cf3 = cf1.acceptEither(cf2, (x) -> { check(x == 1 || x == 2); atomicInt.incrementAndGet(); });


@@ -579,54 +579,54 @@ CompletableFuture cf3; int before = atomicInt.get(); CompletableFuture cf1 = runAsync(() -> { }); CompletableFuture cf2 = runAsync(() -> { }); cf3 = cf1.runAfterEither(cf2, () -> { atomicInt.incrementAndGet(); });


@@ -668,20 +668,20 @@ } catch (Throwable t) { unexpected(t); }

     //----------------------------------------------------------------
     // anyOf tests
     //----------------------------------------------------------------