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:
@@ -8,7 +8,7 @@ module Uh
|
||||
end
|
||||
|
||||
def work_events
|
||||
@before_wait.call if @before_wait
|
||||
@before_watch.call if @before_watch
|
||||
if res = select(@ios, [], [], @timeout) then @on_read.call res
|
||||
else @on_timeout.call if @on_timeout end
|
||||
end
|
||||
|
Reference in New Issue
Block a user