Class LoomUtils
java.lang.Object
com.vaadin.featurepack.desktop.threads.LoomUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAsserts that this thread is a virtual one.static Thread.Builder.OfVirtualnewVirtualBuilder(Executor executor) Creates a virtual thread builder which runs continuations on given executor.
-
Constructor Details
-
LoomUtils
public LoomUtils()
-
-
Method Details
-
assertVirtualThread
public static void assertVirtualThread()Asserts that this thread is a virtual one. -
newVirtualBuilder
Creates a virtual thread builder which runs continuations on given executor.- Parameters:
executor- runs continuations.- Returns:
- the virtual thread builder
-