< prev index next > src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java
Print this page
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;
+ import java.util.concurrent.ScheduledExecutorService;
import java.util.stream.Stream;
import jdk.internal.loader.NativeLibraries;
import jdk.internal.misc.CarrierThreadLocal;
import jdk.internal.module.ServicesCatalog;
/**
* Returns the virtual thread default scheduler.
*/
Executor virtualThreadDefaultScheduler();
+ /**
+ * Returns a stream of the delayed task schedulers used for virtual threads.
+ */
+ Stream<ScheduledExecutorService> virtualThreadDelayedTaskSchedulers();
+
/**
* Creates a new StackWalker
*/
StackWalker newStackWalkerInstance(Set<StackWalker.Option> options,
ContinuationScope contScope,
< prev index next >