Class: Concurrent::NullThreadPool
- Inherits:
-
Object
- Object
- Concurrent::NullThreadPool
- Defined in:
- lib/concurrent/global_thread_pool.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.post(*args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/concurrent/global_thread_pool.rb', line 5 def self.post(*args) Thread.new(*args) do Thread.current.abort_on_exception = false yield(*args) end return true end |
Instance Method Details
#<<(block) ⇒ Object
17 18 19 20 |
# File 'lib/concurrent/global_thread_pool.rb', line 17 def <<(block) NullThreadPool.post(&block) return self end |
#post(*args, &block) ⇒ Object
13 14 15 |
# File 'lib/concurrent/global_thread_pool.rb', line 13 def post(*args, &block) return NullThreadPool.post(*args, &block) end |