Episode 226, concurrency warning #136
-
So, in the onFirstAppearEffect = .run { send in
do {
try await withTaskCancellation(id: DismissID(id: childStateAfter.id)) {
try await Task.never()
}
} catch is CancellationError {
await send(actionCasePath.embed(.dismiss))
}
}
.cancellable(id: childStateAfter.id) I've got concurrency warnings cranked way up and as a result, Xcode is complaining about the I guess the question I have is, is this a problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@sbeitzel The Composable Architecture was built before Swift concurrency and has not been audited for strict concurrency yet. As helpful as Swift's concurrency diagnostics are when they work, we've found them to be a little flakey and buggy, and so we've been waiting for the tools to mature before fully adopting them. In this case the warnings can generally be fixed by adding some |
Beta Was this translation helpful? Give feedback.
@sbeitzel The Composable Architecture was built before Swift concurrency and has not been audited for strict concurrency yet. As helpful as Swift's concurrency diagnostics are when they work, we've found them to be a little flakey and buggy, and so we've been waiting for the tools to mature before fully adopting them.
In this case the warnings can generally be fixed by adding some
Sendable
conformances. We'll try to clean up some of this in time for the navigation release, though, with the help of PRs like pointfreeco/swift-composable-architecture#1994.