Great answer from @mbrandonw about the challenges of locking properties. Definitely a pattern I’m seeing a lot lately.
-
Great answer from @mbrandonw about the challenges of locking properties. Definitely a pattern I’m seeing a lot lately.
Preventing regressions when conforming to `Sendable` with `@unchecked`
It is my understanding that when conforming to Sendable it is safe to use @unchecked if the type is safe to use across tasks using a method the compiler cannot check, e.g. locks. That would mean the following code is val…
Swift Forums (forums.swift.org)
Copyright © 2024 NodeBB | Contributors