Skip to content

Commit

Permalink
add migration guide for virtual threads
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed Dec 6, 2023
1 parent 5ed6781 commit a8e2c50
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/docs/migration-guide-5-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ app.beforeMatched { ctx ->
{% endcapture %}
{% include macros/docsSnippet.html java=java kotlin=kotlin %}

## Virtual threads are now opt-in
In Javalin 5, virtual threads were enabled by default. This was because virtual threads themselves
were opt-in, and we wanted to make it as easy as possible to try them out. Now that virtual threads
are becoming part of the official JDKs, we have decided to make them opt-in. You can enable virtual
threads by setting `config.useVirtualThreads = true`. This will enable virtual threads for
all Javalin threads, including the Jetty request threads.

## Untyped "app attributes" are now typed "app data"
In Javalin 5, you could attach and access untyped attributes to the Javalin instance, like this:

Expand Down

0 comments on commit a8e2c50

Please sign in to comment.