Class: ZeevexConcurrency::EventLoop::Inline
Overview
event loop which runs all events synchronously when enqueued
Instance Method Summary
collapse
#<<, #backlog, #flush, #initialize, #on_event_loop, #reset, #run_and_wait, #running?
Instance Method Details
#enqueue(callable = nil, &block) ⇒ Object
145
146
147
148
149
|
# File 'lib/zeevex_concurrency/event_loop.rb', line 145
def enqueue(callable = nil, &block)
res = super
process_one
res
end
|
#in_event_loop? ⇒ Boolean
150
|
# File 'lib/zeevex_concurrency/event_loop.rb', line 150
def in_event_loop?; true; end
|
#start ⇒ Object
143
|
# File 'lib/zeevex_concurrency/event_loop.rb', line 143
def start; end
|
#stop ⇒ Object
144
|
# File 'lib/zeevex_concurrency/event_loop.rb', line 144
def stop; end
|