Thread Without Join (ARCH8041)
هذا المحتوى غير متوفر بلغتك بعد.
Key kotlin.async.thread-without-join · Severity warning · Category async
Flags Thread(...).start() / thread { } whose Thread is never joined or stored - its failures are invisible and the caller cannot wait for it.
Incorrect
Section titled “Incorrect”thread { export() }Correct
Section titled “Correct”val t = thread { export() }t.join()Keep the Thread and join it, or move the work to a coroutine on a structured scope.