Preview API
Show preview API for:
Contents
-
InterfacesInterfacePreview FeatureDescriptionScoped ValuesAn operation that returns a result and may throw an exception.Stable ValuesA stable value is a holder of contents that can be set at most once.Structured ConcurrencyAn API for structured concurrency.Structured ConcurrencyRepresents the configuration for a
StructuredTaskScope.Structured ConcurrencyAn object used with aStructuredTaskScopePREVIEW to handle subtask completion and produce the result for the scope owner waiting in thejoinPREVIEW method for subtasks to complete.Structured ConcurrencyRepresents a subtask forked withStructuredTaskScope.fork(Callable)PREVIEW orStructuredTaskScope.fork(Runnable)PREVIEW.
-
ClassesClassPreview FeatureDescriptionScoped ValuesA value that may be safely and efficiently shared to methods without using method parameters.Scoped ValuesA mapping of scoped values, as keys, to values.
-
Enum ClassesEnum ClassPreview FeatureDescriptionStructured ConcurrencyRepresents the state of a subtask.
-
Exception ClassesException ClassPreview FeatureDescriptionStructured ConcurrencyException thrown by
StructuredTaskScope.join()PREVIEW when the outcome is an exception rather than a result.Structured ConcurrencyException thrown byStructuredTaskScope.join()PREVIEW if the scope was created with a timeout and the timeout expired before or while waiting injoin.Structured ConcurrencyThrown when a structure violation is detected.