Class: Moneta::Server::Connection Private

Inherits:
Object
  • Object
show all
Defined in:
lib/moneta/server.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(io, store) ⇒ Connection

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Connection.


12
13
14
15
16
# File 'lib/moneta/server.rb', line 12

def initialize(io, store)
  @io = io
  @store = store
  @fiber = Fiber.new { run }
end

Instance Method Details

#resume(result = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


18
19
20
# File 'lib/moneta/server.rb', line 18

def resume(result = nil)
  @fiber.resume result
end