Class: Manticore::Client::ExecutorThreadFactory
- Inherits:
-
Object
- Object
- Manticore::Client::ExecutorThreadFactory
- Includes:
- Java::JavaUtilConcurrent::ThreadFactory
- Defined in:
- lib/manticore/client.rb
Overview
This is a class rather than a proc because the proc holds a closure around the instance of the Client that creates it.
Instance Method Summary collapse
Instance Method Details
#newThread(runnable) ⇒ Object
101 102 103 104 105 |
# File 'lib/manticore/client.rb', line 101 def newThread(runnable) thread = Executors.defaultThreadFactory.newThread(runnable) thread.daemon = true return thread end |