ruby-concurrency / ruby-concurrency/concurrent-ruby
should the thread_local_var_accessor gem be included within the concurrent-ruby gem?
Nessuno ha ancora preso questa issue.
- Lingua principale
- Ruby
- Stelle
- 5.8k
- Fork
- 420
- Merge medio
- 20h 45m
- PR unite (30g)
- 4
Descrizione
I've written a little gem that makes concurrent-ruby's thread-local variables easy to use, in the same manner of attr_reader, attr_writer, attr_accessor: it is called: thread_local_var_accessors
See:
- https://github.com/aks/thread_local_var_accessors
- https://rubygems.org/gems/thread_local_var_accessors
Eg:
tlv_reader :var1
tlv_writer :var2
tlv_accessor: :var3
I've been using it in my company software for some time now. It is an easy way to encourage developers to improve the thread-safetyness of their code, especially code that runs in a multi-threaded environment (eg: sidekiq tasks).
I'm happy to continue maintaining it separately, but I'm also happy to contribute it to the core concurrent-ruby gem, if that's appropriate. In the latter case, since we are already using concurrent-ruby elsewhere, for other reasons, it would mean one gem less to track for us. 😄
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Review the proposed thread_local_var_accessors API in the linked GitHub repository and RubyGems page, starting with the examples tlv_reader, tlv_writer, and tlv_accessor. Determine whether this functionality belongs in concurrent-ruby and what integration scope and acceptance criteria would be required; the issue does not name project files or tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ruby
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100