Consider making @Blocking behave as @ExecuteOn(TaskExecutors.IO) #7239
Labels
status: next major version
The issue will be considered for the next major version
status: under consideration
The issue is being considered, but has not been accepted yet
type: breaking
Introduces a breaking change
Milestone
Issue description
I think for Micronaut 4.0, if a user adds
@Blocking
to a method and they are using the Netty runtime the behaviour should be identical as if they use@ExecuteOn(TaskExecutors.IO)
.I think
@Blocking
is a more idiomatic annotation which conveys what the codes does. Then it is up to the runtime to execute it in a different thread pool if applies.We are already using
@Blocking
in Micronaut Data CRUD repositoriesCurrently,
@Blocking
only works forAUTO
thread selection. Since Micronaut 2.0 thread section defaults to manual.The text was updated successfully, but these errors were encountered: