notes/pl/java/features/io/concurrency/structured.txt
ihar_hancharenka 173021da56 m
2025-10-10 11:41:03 +03:00

40 строки
1.7 KiB
Plaintext

https://openjdk.org/jeps/505
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
? ScopedValue API
https://openjdk.org/jeps/506
baeldung
https://www.baeldung.com/java-structured-concurrency
try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
Future<Shelter> shelter = scope.fork(this::getShelter);
Future<List<Dog>> dogs = scope.fork(this::getDogs);
scope.join();
Response response = new Response(shelter.resultNow(), dogs.resultNow());
// ...
}
https://github.com/softwaremill/jox
2025
Devoxx - Structured Concurrency in Action by Nicolai Parlog 0:00 of 51:33
https://www.youtube.com/watch?v=rcrA4SOdhzA
https://softwaremill.com/critique-of-jep-505-structured-concurrency-fifth-preview/
SpringIO - Virtual Threads, Structured Concurrency and Scoped Values: Putting it all together 0:00 of 47:40
https://www.youtube.com/watch?v=kz_R6-fdSZc
https://speakerdeck.com/balkrishnarawool/virtual-threads-structured-concurrency-and-scoped-values-putting-it-all-together
https://github.com/balkrishnarawool/SpringBootLoom
https://foojay.io/today/javas-structured-concurrency-finally-finding-its-footing/
https://habr.com/ru/companies/spring_aio/articles/930812/
2024
Schmidt - Walkthrough of the Java StructuredTaskScope Code of 11:37
https://www.youtube.com/watch?v=WfyKt9dkgmM
http://www.dre.vanderbilt.edu/~schmidt/cs891/2024-PDFs/14.2.5-StructuredTaskScope.pdf
+ VirtualThreads
https://www.happycoders.eu/java/scoped-values/
ScopedValues
https://www.happycoders.eu/java/structured-concurrency-structuredtaskscope/
std/custom policies
?
https://www.youtube.com/watch?v=wWAnjsBgDA4