diff --git a/gems.rb b/gems.rb index 229e4f9..9539d77 100644 --- a/gems.rb +++ b/gems.rb @@ -7,8 +7,6 @@ gemspec -gem "faraday", git: "https://github.com/lostisland/faraday.git", branch: "mg/parallel-manager-execute" - group :maintenance, optional: true do gem "bake-modernize" gem "bake-gem" diff --git a/lib/async/http/faraday/adapter.rb b/lib/async/http/faraday/adapter.rb index 633b74d..ce3352e 100644 --- a/lib/async/http/faraday/adapter.rb +++ b/lib/async/http/faraday/adapter.rb @@ -63,7 +63,11 @@ def run end def async(&block) - @barrier.async(&block) + if @barrier + @barrier.async(&block) + else + Sync(&block) + end end def execute(&block)