-
Notifications
You must be signed in to change notification settings - Fork 537
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
Add MVar.modify? #771
Comments
You might want to submit it to the cats-effect instead |
Opps, wrong repo indeed |
Moved to the correct repo and reopened. |
Really, I do not think it is good idea anymore. This is non-reentrant and therefore very error prone. Correct reentrant implementation of Feel free to close this. |
as it stands, the implementation is not safe: Until we have something like what I proposed in #681 |
The other thing worth mentioning is that while "shared state with lock" is easy for simple cases (and you can use |
Closing for now. Good conversation for the archives in case we revive it after something like #681. |
Similar to Ref.modify, but using pessimistic lock.
It is very useful to guard shared state where state modification is effectful.
The text was updated successfully, but these errors were encountered: