Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop dependency on mutex_m #1013

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

casperisfine
Copy link

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

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.
Copy link
Collaborator

@eregon eregon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@eregon eregon merged commit c3b877a into ruby-concurrency:master Nov 20, 2023
@eregon
Copy link
Collaborator

eregon commented Jan 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants