Class: Groonga::Client::Protocol::HTTP::Coolio::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/client/protocol/http/coolio.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, loop) ⇒ Request

Returns a new instance of Request.



29
30
31
32
# File 'lib/groonga/client/protocol/http/coolio.rb', line 29

def initialize(client, loop)
  @client = client
  @loop = loop
end

Instance Method Details

#waitObject



34
35
36
37
38
# File 'lib/groonga/client/protocol/http/coolio.rb', line 34

def wait
  until @client.finished?
    @loop.run_once
  end
end