News for hackers. Stuff that matters.
Re:Java 21 Released by jayd16 on Tuesday September 19, 2023 @11:37AM (#37571475)
I wonder if we'll see Lombok markup for @OnVirtualThread or whatever the pattern shakes out to be.
Re:Java 21 Released by andrewaylett on Tuesday September 19, 2023 @11:57AM (#37571842)
Lombok is unfortunately a separate programming language, albeit insufficiently distinct from Java.

(Why? Because it uses internal compiler APIs to change the behaviour of code you write in ways that are not valid: annotation processors are supposed to generate new classes, not mutate existing classes.)

Re:Java 21 Released by samus on Tuesday September 19, 2023 @08:30PM (#37578981)
I went looking on their because for some reason I thought that an `@Async` annotation would already exist. But no such luck.

If you want to use something like this today, then you could take a look at Spring 's Async support. It also lets you supply the Executor.