Class: Dalli::Server::KSocket

Inherits:
Object
  • Object
show all
Defined in:
lib/dalli/async_socket.rb

Class Method Summary collapse

Class Method Details

.open_with_async(*args) ⇒ Object Also known as: open



164
165
166
167
168
169
170
# File 'lib/dalli/async_socket.rb', line 164

def open_with_async(*args)
  if EM.reactor_running?
    Dalli::Server::EventMachineConnection.connect *args
  else
    open_without_async *args
  end
end