normandy/lib/channel/runtime.rb
2015-12-15 13:50:47 +01:00

15 lines
209 B
Ruby

require 'thread'
module Channel::Runtime
module_function
def go(prc, *args)
Thread.new { prc.call(*args) }
end
end
module Kernel
def go(prc, *args)
Channel::Runtime.go(prc, *args)
end
end