Class: JBackground::JBackgroundThreadFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/j_background/base.rb

Instance Method Summary collapse

Instance Method Details

#new_thread(runnable) ⇒ Object



50
51
52
53
54
# File 'lib/j_background/base.rb', line 50

def new_thread(runnable)
  rv = java.lang.Thread.new(runnable);
  rv.setDaemon(true)
  rv
end