public final class VirtualThreadSupport
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static LoomishExecutors | allowVirtual(boolean allow,
            java.util.concurrent.ThreadFactory threadFactory)Return an instance of  LoomishExecutorsbased on a permission to use virtual threads. | 
| static boolean | isVirtualThread()Informs whether the given  Threadis virtual. | 
public static boolean isVirtualThread()
Thread is virtual.public static LoomishExecutors allowVirtual(boolean allow, java.util.concurrent.ThreadFactory threadFactory)
LoomishExecutors based on a permission to use virtual threads.allow - whether to allow virtual threads.threadFactory - the thread factory to be used by a the ExecutorService.LoomishExecutors instance.Copyright © 2012–2020 Oracle Corporation. All rights reserved.