| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Thread | Returns: a new threadthe object to run task)Creates a new virtual thread (on Java 21+) for the specified task. |
| Utils21 | back to summary |
|---|---|
| private Utils21() | |
| newVirtualThread | back to summary |
|---|---|
| public static Thread newVirtualThread(Runnable task) Creates a new virtual thread (on Java 21+) for the specified task. Use
| |