concurrent-ruby
https://github.com/ruby-concurrency/concurrent-ruby
Ruby
Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.
Concurrent::Map#fetch_or_store
No Docs, write some!
Edit
git clone [email protected]:ruby-concurrency/concurrent-ruby.git
cd concurrent-ruby
open lib/concurrent-ruby/concurrent/map.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Concurrent--Map-fetch_or_store-for-pr
# Commit to gitgit add lib/concurrent-ruby/concurrent/map.rbgit commit -m "better docs for Concurrent::Map#fetch_or_store"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Concurrent--Map-fetch_or_store-for-pr
hub pull-request
# Celebrate!