Thread Without Join (ARCH9041)
هذا المحتوى غير متوفر بلغتك بعد.
Key swift.async.thread-without-join · Severity warning · Category async
Flags Thread { } / Thread(block:) started and never joined or stored - its failures are invisible.
Incorrect
Section titled “Incorrect”Thread { export() }.start()Correct
Section titled “Correct”Task.detached { export() } // or an OperationQueue you can wait onUse Task / OperationQueue with a handle you can await or cancel.