Class: IOPromise::Faraday::Connection

Inherits:
Faraday::Connection
  • Object
show all
Defined in:
lib/iopromise/faraday/connection.rb

Instance Method Summary collapse

Constructor Details

#initializeConnection

Returns a new instance of Connection.



10
11
12
13
14
# File 'lib/iopromise/faraday/connection.rb', line 10

def initialize(*)
  super
  
  @parallel_manager = FaradayPromise.parallel_manager
end

Instance Method Details

#in_parallel(manager = nil) ⇒ Object



16
17
18
# File 'lib/iopromise/faraday/connection.rb', line 16

def in_parallel(manager = nil)
  # not supported, we're always in parallel
end

#run_requestObject



20
21
22
# File 'lib/iopromise/faraday/connection.rb', line 20

def run_request(*)
  FaradayPromise.new(super)
end