Defines non-final APIs for concurrent programming.
-
static final class
A StructuredTaskScope
that captures the exception of the first subtask to
complete abnormally.
static final class
A StructuredTaskScope
that captures the result of the first subtask to
complete successfully.
StructuredTaskScope.join()
Wait for all threads to finish or the task scope to shut down.
Wait for all threads to finish or the task scope to shut down, up to the given
deadline.