Class: IOPromise::Faraday::Connection
- Inherits:
-
Faraday::Connection
- Object
- Faraday::Connection
- IOPromise::Faraday::Connection
- Defined in:
- lib/iopromise/faraday/connection.rb
Instance Method Summary collapse
- #in_parallel(manager = nil) ⇒ Object
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
- #run_request ⇒ Object
Constructor Details
#initialize ⇒ Connection
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_request ⇒ Object
20 21 22 |
# File 'lib/iopromise/faraday/connection.rb', line 20 def run_request(*) FaradayPromise.new(super) end |