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, max_size) ⇒ 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.



14
15
16
17
18
19
# File 'lib/moneta/server.rb', line 14

def initialize(io, store, max_size)
  @io = io
  @store = store
  @max_size = max_size
  @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.



21
22
23
# File 'lib/moneta/server.rb', line 21

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