Integrate blocking and multiplexing workers usage

This commit is contained in:
Thibault Jouan
2015-04-17 21:25:43 +00:00
parent fa03cd736a
commit 9ea43ee69a
7 changed files with 35 additions and 3 deletions

View File

@@ -73,7 +73,9 @@ module Uh
end
def run_until &block
manager.handle_pending_events until block.call
worker.watch @manager
@env.log "Working events with `#{worker.class}'"
worker.work_events until block.call
end
def terminate