Ir al contenido

Thread Without Join (ARCH9041)

Esta página aún no está disponible en tu idioma.

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.