Module java.base
Package java.lang

Interface Thread.Builder.OfVirtual

All Superinterfaces:
Enclosing interface:

public static sealed interface Thread.Builder.OfVirtual extends Thread.BuilderPREVIEW
OfVirtual is a preview API of the Java platform.
Programs can only use OfVirtual when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A builder for creating a virtual Thread or ThreadFactory that creates virtual threads.

Unless otherwise specified, passing a null argument to a method in this interface causes a NullPointerException to be thrown.

See Also: