Prototype two workers: blocking and multiplexing
This commit is contained in:
15
lib/uh/wm/workers/blocking.rb
Normal file
15
lib/uh/wm/workers/blocking.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
module Uh
|
||||
module WM
|
||||
module Workers
|
||||
class Blocking < Base
|
||||
def work_events
|
||||
#until yield
|
||||
# @on_events_read_bang.call
|
||||
#end
|
||||
#@on_events_read_bang.call until yield
|
||||
@on_read_next.call
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user