IgnorableReturnValue

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class IgnorableReturnValue(source)

Expresses that calls of the annotated function are ignorable. Ignorable calls would not trigger a warning from Kotlin's return value checker, even if they are not used.

This annotation only makes sense when used together with 'Return value checker' feature. Placing it without enabling the corresponding feature would result in a compiler error.

Since Kotlin

2.2