Skip to content

Testing @Sendable closures #1412

Answered by mbrandonw
rcarver asked this question in Q&A
Sep 25, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @rcarver, I think using @MainActor and dropping the ActorIsolated should be ok and maybe something we should even do more of in our case study tests. In the future when we finish disentangling TCA from Combine we can hopefully run the Store on a non-main global actor, and then in that case ActorIsolated might be more handy.

And as for the second question... I'm not sure. Seems like the closure you provide is @Sendable so don't know why it's complaining.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mbrandonw
Comment options

@mbrandonw
Comment options

@rcarver
Comment options

Answer selected by rcarver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants