class Concurrent::DaemonThreadFactory
def initialize(daemonize = true)
def initialize(daemonize = true) @daemonize = daemonize @java_thread_factory = java.util.concurrent.Executors.defaultThreadFactory end
def newThread(runnable)
def newThread(runnable) thread = @java_thread_factory.newThread(runnable) thread.setDaemon(@daemonize) return thread end