pointfreeco / swift-composable-architecture

A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
https://www.pointfree.co/collections/composable-architecture
MIT License
11.91k stars 1.37k forks source link

Convert all ActorIsolated to LockIsolated. #3198

Closed mbrandonw closed 3 weeks ago

Alex293 commented 3 weeks ago

Can you briefly explain the reason behind this ?

will actorisolated be deprecated ?

mbrandonw commented 3 weeks ago

Can you briefly explain the reason behind this ?

will actorisolated be deprecated ?

Yeah, we will be deprecating ActorIsolated in swift-concurrency-extras. It really just has no advanced over LockIsolated (as far as we can tell), yet it's less ergonomic to use.

Do you have an example of where it is better to use ActorIsolated over LockIsolated?

stephencelis commented 3 weeks ago

@Alex293 For reference, here's the PR deprecating: https://github.com/pointfreeco/swift-concurrency-extras/pull/29

Alex293 commented 3 weeks ago

I don’t have any specific use case, I was just wondering why, thanks !