4 ms·
I wonder if we'll see Lombok markup for @OnVirtualThread or whatever the pattern shakes out to be.
by jayd16 3y ago
I wonder if we'll see Lombok markup for @OnVirtualThread or whatever the pattern shakes out to be.
- andrewaylett 3y agoLombok 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.)
- samus 3y agoI 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.