Swift concurrency nOOb question: if you're using Approachable Concurrency and you get warnings about using Sendable structs in non-main-actor contexts, is the recommended workaround to mark them as nonisolated?

Also, it seems odd to me that marking a struct as Sendable doesn't already exempt it from default MainActor isolation. Is there a good reason why you'd want to limit Sendable types to MainActor?

0

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