|
@@ -17,12 +17,13 @@ mvn test # run tests (currently non
|
|
|
`C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.8\plugins\maven\lib\maven3\bin`
|
|
`C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2023.3.8\plugins\maven\lib\maven3\bin`
|
|
|
- PowerShell splits unquoted `-Dexec.mainClass=...`; quote the argument: `'-Dexec.mainClass=space.anyi.Cf01_CreateStage'`.
|
|
- PowerShell splits unquoted `-Dexec.mainClass=...`; quote the argument: `'-Dexec.mainClass=space.anyi.Cf01_CreateStage'`.
|
|
|
- Console shows GBK encoding by default, so Chinese output may look garbled in terminal even though the program is correct.
|
|
- Console shows GBK encoding by default, so Chinese output may look garbled in terminal even though the program is correct.
|
|
|
|
|
+- `exec:java` is unreliable for demos that use `orTimeout`/`completeOnTimeout` (e.g. `Cf10`): the JDK `CompletableFutureDelayScheduler` thread lingers and `exec-maven-plugin` reports a threadGroup teardown error even when the program is correct. Run such demos with plain Java instead: `& "C:\Program Files\Java\jdk-17\bin\java.exe" -cp target/classes space.anyi.Cf10_TimeoutAndException`.
|
|
|
|
|
|
|
|
No other build tools, linters, or formatters are configured.
|
|
No other build tools, linters, or formatters are configured.
|
|
|
|
|
|
|
|
## Structure
|
|
## Structure
|
|
|
|
|
|
|
|
-- `src/main/java/space/anyi/` — demo code (`Cf01`..`Cf09`, one file per API topic, each with a standalone `main()`)
|
|
|
|
|
|
|
+- `src/main/java/space/anyi/` — demo code (`Cf01`..`Cf10`, one file per API topic, each with a standalone `main()`)
|
|
|
- `completablefuture-tutorial.md` — tutorial doc (Chinese, follows `template.md` style)
|
|
- `completablefuture-tutorial.md` — tutorial doc (Chinese, follows `template.md` style)
|
|
|
- `completablefuture-blog.md` — blog/cheat-sheet doc for experienced Java programmers
|
|
- `completablefuture-blog.md` — blog/cheat-sheet doc for experienced Java programmers
|
|
|
- `template.md` — reference doc for writing style and structure (Chinese, covers JUC concurrency topics)
|
|
- `template.md` — reference doc for writing style and structure (Chinese, covers JUC concurrency topics)
|