mirror of
https://github.com/lloeki/normandy.git
synced 2025-12-06 10:04:39 +01:00
WIP
This commit is contained in:
parent
0cdf0a490a
commit
06273c3525
11 changed files with 208 additions and 29 deletions
15
lib/channel/runtime.rb
Normal file
15
lib/channel/runtime.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue