Module: EventMachine::EmStartStopTimeouts

Included in:
EventMachine
Defined in:
lib/emrpc/util/em_start_stop_timeouts.rb

Defined Under Namespace

Classes: ServersManipulationQueue

Instance Method Summary collapse

Instance Method Details

#queued_start_server(host, port, *args, &blk) ⇒ Object

Use case:

started localhost:4005 (signature4005)
stopped signature4005
started localhost:4005 (signature4005)


11
12
13
14
# File 'lib/emrpc/util/em_start_stop_timeouts.rb', line 11

def queued_start_server(host, port, *args, &blk)
  @servers_m_queue ||= ServersManipulationQueue.new
  @servers_m_queue.start_server(host, port, *args, &blk)
end

#queued_stop_server(signature, *args, &blk) ⇒ Object



16
17
18
19
# File 'lib/emrpc/util/em_start_stop_timeouts.rb', line 16

def queued_stop_server(signature, *args, &blk)
  @servers_m_queue ||= ServersManipulationQueue.new
  @servers_m_queue.stop_server(signature, *args, &blk)
end