Class: Pione::DRbPatch::RequestLooper
- Inherits:
-
Object
- Object
- Pione::DRbPatch::RequestLooper
- Defined in:
- lib/pione/patch/drb-patch.rb
Overview
RequestLooper is a receiver of client request. This is different from standard DRb's +main_loop+ at the point that this method doesn't need to wait finishing evaluation of request and reply.
Instance Method Summary collapse
-
#initialize(server) ⇒ RequestLooper
constructor
A new instance of RequestLooper.
- #start(client) ⇒ Object
Constructor Details
#initialize(server) ⇒ RequestLooper
Returns a new instance of RequestLooper.
441 442 443 |
# File 'lib/pione/patch/drb-patch.rb', line 441 def initialize(server) @server = server end |
Instance Method Details
#start(client) ⇒ Object
445 446 447 |
# File 'lib/pione/patch/drb-patch.rb', line 445 def start(client) loop {handle_client_request(client)} end |