ruby-concurrency / ruby-concurrency/concurrent-ruby
LazyRegister concurrent register bug
Open
@kvokka is already working on this.
Since Aug 25, 2019.
enhancement
- Dominant language
- Ruby
- Stars
- 5.8k
- Forks
- 420
- Avg merge
- 20h 45m
- Merged PRs (30d)
- 4
Description
If yout take a look at https://github.com/ruby-concurrency/concurrent-ruby/blob/bbeacbcebf72668ed04df0738df7e3a654f7c177/lib-edge/concurrent/lazy_register.rb#L61 you will see, that it has a bug.
When block evaluation time is stochastic, then even 2 register calls will produce unpredictable result.
* `concurrent-ruby` version: master
* `concurrent-ruby-edge` used: yes
Will be happy to fix it, if u don't mind.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.