nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat: Make Swift `Promise` an `actor`

Open mrousavy opened this issue 5 months ago • 1 comments

Makes the Swift Promise type a Sendable actor, which makes it Thread-safe now and prepares it for Swift 6 usage.

The usage inside the nitrogenerated code has to be adapted as well - every call to resolve, reject, then and catch now has to be inside a Task { … }, and has to be awaited. This has a minor performance hit I guess.

mrousavy avatar Jul 16 '25 18:07 mrousavy

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Jul 18, 2025 10:34am

vercel[bot] avatar Jul 16 '25 18:07 vercel[bot]