Interface StructuredTaskScope.Subtask<T>

Type Parameters:
T - the result type
All Superinterfaces:
Supplier<T>
Enclosing class:
StructuredTaskScopePREVIEW<T>

public static sealed interface StructuredTaskScope.Subtask<T> extends Supplier<T>
Subtask is a preview API of the Java platform.
Programs can only use Subtask when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Represents a subtask forked with StructuredTaskScope.fork(Callable)PREVIEW.
Since:
21