Fix initial events handling for mux worker
* Rename `before_wait' worker callback to `before_watch'; * Setup `before_watch' callback in the runner, handling events with the manager; * Test the mux worker with a cucumber scenario.
This commit is contained in:
@@ -58,6 +58,9 @@ module Uh
|
||||
|
||||
def worker
|
||||
@worker ||= Workers.build(*(@env.worker)).tap do |w|
|
||||
w.before_watch do
|
||||
@manager.handle_pending_events
|
||||
end
|
||||
w.on_read do
|
||||
@manager.handle_pending_events
|
||||
end
|
||||
|
Reference in New Issue
Block a user