Skip to content

Commit 72e0cef

Browse files
committed
mention JVM virtual threads
1 parent 445e81e commit 72e0cef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TUTORIAL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ This will start a server on the default port 8080.
6464
You can change the listening IP and port by passing it as an argument to the `Server` constructor.
6565
Passing `InetSocketAddress(0)` will bind to any available port.
6666

67+
You can also pass `Server(workerPool = Executors.newVirtualThreadPerTaskExecutor())` if you want to run request handlers in JVM virtual threads.
68+
6769
## Config
6870

6971
Most applications need some configuration. 12-factor applications use environment variables for configuration.

0 commit comments

Comments
 (0)