'@Deferred' result is unused
Reports function calls with the Deferred
result type if the return value is not used.
If the Deferred
return value is not used, the call site would not wait to complete this function.
Example:
The quick-fix provides a variable with the Deferred
initializer:
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
DeferredResultUnused- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection options
Here you can find the description of settings available for the '@Deferred' result is unused inspection, and the reference of their default values.
- Report only function calls from 'kotlinx.coroutines'
Not selected
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Kotlin, 243.23126-IJ |