lib/polyphony/extensions/thread.rb in polyphony-0.43.9 vs lib/polyphony/extensions/thread.rb in polyphony-0.43.10
- old
+ new
@@ -16,10 +16,10 @@
end
def execute
# agent must be created in the context of the new thread, therefore it
# cannot be created in Thread#initialize
- @agent = Polyphony::LibevAgent.new
+ @agent = Polyphony::Agent.new
setup
@ready = true
result = @block.(*@args)
rescue Polyphony::MoveOn, Polyphony::Terminate => e
result = e.value