Syntax for `nonsiolated(nonsending)` closure literal?
Swift Forums
Syntax for `nonsiolated(nonsending)` closure literal?
I'm trying to audit cases of nonisolated async functions in our codebase. I'm getting a warning for closure literals: await withTaskCancellationHandler { // warning: Feature 'NonisolatedNonsendingByDefault' will cause nonisolated async closure to run on the caller's actor; use '@concurrent' to preserve behavior ... } onCancel: { ... } In cases where @concurrent is correct, I can insert { @concurrent in to make it explicit and suppress the warning. But when nonsiolated(nonsending) sho...
0 comments
No comments yet.