Class: Isono::NodeModules::RpcChannel::OneshotResponseContext

Inherits:
ResponseContext
  • Object
show all
Defined in:
lib/isono/node_modules/rpc_channel.rb

Overview

Do nothing when the endpoint trys to send back in case of oneshot request.

Instance Attribute Summary

Attributes inherited from ResponseContext

#header

Instance Method Summary collapse

Methods inherited from ResponseContext

#initialize, #responded?

Constructor Details

This class inherits a constructor from Isono::NodeModules::RpcChannel::ResponseContext

Instance Method Details

#progress(ret) ⇒ Object



323
324
# File 'lib/isono/node_modules/rpc_channel.rb', line 323

def progress(ret)
end

#response(ret) ⇒ Object



326
327
328
329
330
331
332
333
# File 'lib/isono/node_modules/rpc_channel.rb', line 326

def response(ret)
  raise "" if @responded

  EM.schedule {
    @header.ack
  }
  @responded = true
end