Class: Manticore::Client::ExecutorThreadFactory

Inherits:
Object
  • Object
show all
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


99
100
101
102
103
# File 'lib/manticore/client.rb', line 99

def newThread(runnable)
  thread = Executors.defaultThreadFactory.newThread(runnable)
  thread.daemon = true
  return thread
end