Class: Thread

Inherits:
Object show all
Defined in:
lib/rwd/ruby.rb

Class Method Summary collapse

Class Method Details

.background(*args) ⇒ Object


43
44
45
46
47
48
49
# File 'lib/rwd/ruby.rb', line 43

def self.background(*args)
  new(*args) do |*args|
    Thread.pass

    yield(*args)
  end
end