Files
javademos/java28-features/output/05-structured-concurrency.txt

10 lines
221 B
Plaintext

$ java src/StructuredDemo.java
both succeed:
user ok, order ok
one fails:
user was cancelled
join() threw ExecutionException: order service is down
first success wins:
mirror-A was cancelled
winner: mirror-B ok