Class: WsdlMapper::Runtime::Middlewares::AsyncDispatcher

Inherits:
SimpleDispatcher show all
Defined in:
lib/wsdl_mapper/runtime/middlewares/async_dispatcher.rb

Instance Attribute Summary

Attributes inherited from SimpleDispatcher

#cnx, #logger

Instance Method Summary (collapse)

Methods inherited from SimpleDispatcher

#execute_request, #initialize

Constructor Details

This class inherits a constructor from WsdlMapper::Runtime::Middlewares::SimpleDispatcher

Instance Method Details

- (Object) call(operation, request_promise)

Parameters:

  • operation (WsdlMapper::Runtime::Operation)

    Operation to perform / call to make

  • request_promise (Concurrent::Promise)

    A promise for the request to perform



11
12
13
14
15
16
17
# File 'lib/wsdl_mapper/runtime/middlewares/async_dispatcher.rb', line 11

def call(operation, request_promise)
  http_response_promise = request_promise.then do |request|
    super(operation, request).last
  end

  [operation, http_response_promise]
end