Method: Concurrently::EventLoop.current

Defined in:
lib/all/concurrently/event_loop.rb

.currentObject

The event loop of the current thread.

This method is thread safe. Each thread returns its own event loop.

Examples:

Concurrently::EventLoop.current

Since:

  • 1.0.0



27
28
29
# File 'lib/all/concurrently/event_loop.rb', line 27

def self.current
  @current ||= new
end