Skip to content

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.

Thread { export() }.start()
Task.detached { export() } // or an OperationQueue you can wait on

Use Task / OperationQueue with a handle you can await or cancel.