mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
paranoid about thread safety
This commit is contained in:
parent
f6d7be4a1d
commit
0a217b7248
@ -1,3 +1,11 @@
|
||||
module Faraday
|
||||
# Loads each autoloaded constant. If thread safety is a concern, wrap
|
||||
# this in a Mutex.
|
||||
def self.load
|
||||
constants.each do |const|
|
||||
const_get(const) if autoload?(const)
|
||||
end
|
||||
end
|
||||
|
||||
autoload :Connection, 'faraday/connection'
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user