Skip to content

Commit

Permalink
add pool and replace and with or
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Apr 29, 2022
1 parent 1c07e8c commit e33ddf1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@ You can use the ann:core.annotation.Blocking[] annotation to mark methods as blo

If you set `micronaut.server.thread-selection` to `AUTO`, The Micronaut Framework offloads the execution of methods annotated with `@Blocking` to the IO thread pool (See: api:io.micronaut.scheduling.TaskExecutors[]).

NOTE: `@Blocking` only works if you are using `AUTO` thread selection. Micronaut Framework defaults to `MANUAL` thread selection since Micronaut 2.0. We recommend the usage of ann:scheduling.annotation.ExecuteOn[] annotation to execute the blocking operations on a different thread. `@ExecutesOn` works for both `MANUAL` or `AUTO` thread selection.
NOTE: `@Blocking` only works if you are using `AUTO` thread selection. Micronaut Framework defaults to `MANUAL` thread selection since Micronaut 2.0. We recommend the usage of ann:scheduling.annotation.ExecuteOn[] annotation to execute the blocking operations on a different thread pool. `@ExecutesOn` works for both `MANUAL` and `AUTO` thread selection.

There are some places where the Micronaut framework uses ann:core.annotation.Blocking[] already.

Expand Down

0 comments on commit e33ddf1

Please sign in to comment.