Scala, Concurrency, API, Project Loom, Java.
parallel, shutting down the scope when a first error occurs. Similarly, StructuredTaskScope.ShutdownOnSuccess can be used to shutdown on first success, allowing to implement a race between two computations. Ox’s API diverges from the Java approach and always uses a fixed StructuredTaskScope