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:


  fun calcEverythingAsync() = CompletableDeferred(42)

  fun usage() {
      calcEverythingAsync()
  }

The quick-fix provides a variable with the Deferred initializer:


  fun calcEverythingAsync() = CompletableDeferred(42)

  fun usage() {
      val answer = calcEverythingAsync()
  }