Class LoomUtils

java.lang.Object
com.vaadin.featurepack.desktop.threads.LoomUtils

public class LoomUtils extends Object
  • Constructor Details

    • LoomUtils

      public LoomUtils()
  • Method Details

    • assertVirtualThread

      public static void assertVirtualThread()
      Asserts that this thread is a virtual one.
    • newVirtualBuilder

      public static Thread.Builder.OfVirtual newVirtualBuilder(Executor executor)
      Creates a virtual thread builder which runs continuations on given executor.
      Parameters:
      executor - runs continuations.
      Returns:
      the virtual thread builder