-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
type: enhancementNew feature or requestNew feature or request
Description
We have an annotation @Blocking
- A marker annotation for methods that are blocking.
@yawkat added a really useful PR to detect blocking usages of @BlockingClient in a Netty event loop thread.
BlockingHttpClient is annotated with @Blocking.
Micronaut Data's CrudRepository repository is annotated with @Blocking as well. We have other instances throughout the framework.
We could enhance the @yawkat block detector to detect when an application executes a method annotated with @Blocking in a Netty event loop thread and, in that case, throw an exception.
@micronaut-projects/core-developers thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: enhancementNew feature or requestNew feature or request
Type
Projects
Status
No status