lib/async/container/threaded.rb in async-container-0.11.0 vs lib/async/container/threaded.rb in async-container-0.12.0

- old
+ new

@@ -34,9 +34,15 @@ end def name= value @thread.name = value end + + def exec(*arguments) + pid = ::Process.spawn(*arguments) + + ::Process.waitpid(pid) + end end def self.run(*args, &block) self.new.run(*args, &block) end