completablefuture: CompletableFuture module (thenApply vs thenCompose and the serial trap, which thread runs a stage incl. join() running dependents, CompletionException wrapping, orTimeout/cancel not stopping work, allOf/anyOf with fail-fast and first-success helpers, virtual-thread timings, StructuredTaskScope preview error), 26 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3dRuKRhrHFPzWSSxr
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
59a5435825
commit
9c2ae10d7f
@@ -0,0 +1,11 @@
|
||||
trials per loop: 200
|
||||
stage ran on main when main waited with join(): 37
|
||||
stage ran on main when main waited on a CountDownLatch: 0
|
||||
|
||||
stack of the first stage that ran on main while it was inside join():
|
||||
at com.ankurm.completablefuture.JoinHelpsDemo.lambda$main$1(JoinHelpsDemo.java:35)
|
||||
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:739)
|
||||
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:531)
|
||||
at java.base/java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1930)
|
||||
at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2138)
|
||||
at com.ankurm.completablefuture.JoinHelpsDemo.main(JoinHelpsDemo.java:39)
|
||||
Reference in New Issue
Block a user