RE: ieji.de/@puppethead/1160194368

I think I've gotten around a "race condition" error in Swift 6 Concurrency by using bitPattern initializers to convert my OpaquePointer to a Sendable UInt, and then converting the UInt back to an OpaquePointer to use.

It seems clever but is it good? I'm basically subverting the constraints of the compiler through the trickery of stripping the pointer of its type identity.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://ieji.de/users/puppethead/statuses/116054493479188328 on your instance and quote it. (Note that quoting is not supported in Mastodon.)