< prev index next >

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java

Print this page
*** 44,10 ***
--- 44,11 ---
  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;

*** 594,10 ***
--- 595,15 ---
      /**
       * 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 >