Module: Faraday::Adapter::Parallelism

Included in:
Faraday::Adapter
Defined in:
lib/faraday/adapter.rb

Overview

This module marks an Adapter as supporting parallel requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#supports_parallel=(value) ⇒ Object (writeonly)

Sets the attribute supports_parallel

Parameters:

  • value

    the value to set the attribute supports_parallel to.


21
22
23
# File 'lib/faraday/adapter.rb', line 21

def supports_parallel=(value)
  @supports_parallel = value
end

Instance Method Details

#inherited(subclass) ⇒ Object


27
28
29
30
# File 'lib/faraday/adapter.rb', line 27

def inherited(subclass)
  super
  subclass.supports_parallel = supports_parallel?
end

#supports_parallel?Boolean

Returns:

  • (Boolean)

23
24
25
# File 'lib/faraday/adapter.rb', line 23

def supports_parallel?
  @supports_parallel
end