Class: ZeevexConcurrency::EventLoop::Inline

Inherits:
ZeevexConcurrency::EventLoop show all
Defined in:
lib/zeevex_concurrency/event_loop.rb

Overview

event loop which runs all events synchronously when enqueued

Instance Method Summary collapse

Methods inherited from ZeevexConcurrency::EventLoop

#<<, #backlog, #flush, #initialize, #on_event_loop, #reset, #run_and_wait, #running?

Constructor Details

This class inherits a constructor from ZeevexConcurrency::EventLoop

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

Returns:

  • (Boolean)


150
# File 'lib/zeevex_concurrency/event_loop.rb', line 150

def in_event_loop?; true; end

#startObject



143
# File 'lib/zeevex_concurrency/event_loop.rb', line 143

def start; end

#stopObject



144
# File 'lib/zeevex_concurrency/event_loop.rb', line 144

def stop; end