examples/core/genserver.rb in polyphony-0.14 vs examples/core/genserver.rb in polyphony-0.15
- old
+ new
@@ -13,10 +13,10 @@
reply, state = receiver.send(msg[:method], state, *msg[:args])
msg[:from] << reply unless reply == :noreply
end
end
build_api(coprocess, receiver)
- EV.snooze
+ snooze
coprocess
end
def self.build_api(coprocess, receiver)
receiver.methods(false).each do |m|
\ No newline at end of file