notes/pl/java/features/io/concurrency/structured.txt
ihar_hancharenka 3585a420c3 m
2025-08-27 09:51:46 +03:00

31 строка
1.4 KiB
Plaintext

https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
? ScopedValue API
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());
// ...
}
2025
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