ruby-concurrency / ruby-concurrency/concurrent-ruby

LazyRegister concurrent register bug

Open
#819 3 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.