Replies: 2 comments
-
@jpsim What does We have concurrency warnings cranked to the max in many of our demos, including TicTacToe, which calls If |
Beta Was this translation helpful? Give feedback.
-
Nevermind, I misunderstood the issue here, I just needed to annotate some closures as |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Given that
ViewStore
is not thread-safe and notSendable
by design (see docs), how would you suggest we handle long-living escaping callbacks from views that we do not control or do not want to TCA-ify for whatever reason?This becomes pretty quickly apparent on a large codebase with
SWIFT_STRICT_CONCURRENCY=complete
where the following becomes a warning:Which is possible to work around in an unchecked (and likely unsafe) way with
UncheckedSendable
:Beta Was this translation helpful? Give feedback.
All reactions