Package org.jetbrains.annotations
Annotation Type NonBlocking
-
@Documented @Retention(CLASS) @Target({METHOD,CONSTRUCTOR,TYPE}) public @interface NonBlocking
Indicates that the annotated method is inherently non-blocking and can be executed in a non-blocking context.When this annotation is used on a
class
, all the methods declared by the annotated class are considered non-blocking.Apart from documentation purposes this annotation is intended to be used by static analysis tools to validate against probable runtime errors and contract violations.
- Since:
- 22.0.0