Deferred Not Awaited (ARCH8029)
هذا المحتوى غير متوفر بلغتك بعد.
Key kotlin.async.deferred-not-awaited · Severity warning · Category async
Flags a Deferred assigned to a local that is never awaited in the function - the value is a handle, not the result.
Incorrect
Section titled “Incorrect”val d = async { load() }return dCorrect
Section titled “Correct”val d = async { load() }return d.await()Call await() on the Deferred where the result is needed.