ruby-concurrency / concurrent-ruby

Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.
https://ruby-concurrency.github.io/concurrent-ruby/
Other
5.68k stars 418 forks source link

Drop dependency on mutex_m #1013

Closed casperisfine closed 10 months ago

casperisfine commented 10 months ago

In Ruby 3.3.0 mutex_m is promoted to a default gem, which requires to add it to the gemspec/gemfile.

But given how little usage it has in concurrent-ruby I think it might as well just be not used.

Additionally including Mutex_m cause many undesirable methods to be exposed, so simply using a Mutex instance variable is preferable.

cc @eregon

eregon commented 8 months ago

Released in https://github.com/ruby-concurrency/concurrent-ruby/releases/tag/v1.2.3