Module: ThreadifyProcs
- Defined in:
- lib/threadify_procs.rb,
lib/threadify_procs/version.rb
Constant Summary collapse
- VERSION =
"0.0.5"
Instance Method Summary collapse
Instance Method Details
#call_with_threads(procs, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/threadify_procs.rb', line 5 def call_with_threads procs, ={} set_procs procs return if procs.empty? with_writer_thread do launch_procs if @callback; @callback.call end end end |