mirror of
https://github.com/lloeki/normandy.git
synced 2025-12-06 10:04:39 +01:00
15 lines
209 B
Ruby
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
|