-
Notifications
You must be signed in to change notification settings - Fork 417
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
Do not block Agent#value when updating && other improvements #65
Conversation
Just for curiosity, could you provide an example/use case for this problem? No schedule for 0.6, so you can go and fix it. |
I was supposed to create a pre-release build last Friday but I haven't yet. I had planned to create actor pools for that pre-release but I've been very busy lately and haven't had as much time for the gem as I would have liked. @pitr-ch Please take whatever time you need to make the update. We greatly appreciate your help. Also, I was not aware of your Actress until just now but it looks like you and I share many of the same ideas about actors. Would you be interested in collaborating? |
@pitr-ch I just took a look at your Algebrick library, too. I've also experimented with Erlang-inspired pattern matching in Ruby. You and I definitely share many of the same influences and ideas. |
@jdantonio Yep I would be interested in collaborating :) Thanks for the link I'll look at the functional-ruby. Converted this issue to PR. I've opened #66 to track the Actor pool-ification. |
ensure only one update is running
@mighe use-case: I don't have a concrete one, but I would imagine that when an app would be using agents heavily, it would cause delays and even deadlocks (e.g. two agents reading each other). This is also one a fundamental features of clojure that the agent can be read at any time without coordination. @jdantonio could you look at/restart travis please? |
it can be also later used for Actors
see https://github.com/jdantonio/concurrent-ruby/blob/master/lib/concurrent/agent.rb#L163
I'll submit PR later. What is the schedule for 0.6 release? how much time do I have If I would like to get this fix in?
Other:
send
andsend-off
for blocking IO functions