Shared mutable state, Sendable, and locks

I'm pretty sure that the general mood towards building an "official" lock type is generally positive, and it's only a matter of time. It'd abstract away the underlying differences between platforms as all those floating around implementations do.

To be honest lack of such lock is already felt even by the stdlib with more features having to deal with concurrency and a lock just being the right tool for the job sometimes -- like the recent Observation work had to roll its own lock again which was unfortunate.

12 Likes