We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f469f commit 51fb51cCopy full SHA for 51fb51c
lib/graphiti/scope.rb
@@ -3,14 +3,14 @@ class Scope
3
attr_accessor :object, :unpaginated_object
4
attr_reader :pagination
5
6
- @thread_pool_executor_mutex = Mutex.new
+ @@thread_pool_executor_mutex = Mutex.new
7
8
def self.thread_pool_executor
9
return @thread_pool_executor if @thread_pool_executor
10
11
concurrency = Graphiti.config.concurrency_max_threads || 4
12
- @thread_pool_executor ||= @thread_pool_executor_mutex.synchronize do
13
- Concurrent::ThreadPoolExecutor.new(
+ @@thread_pool_executor_mutex.synchronize do
+ @@thread_pool_executor ||= Concurrent::ThreadPoolExecutor.new(
14
min_threads: 0,
15
max_threads: concurrency,
16
max_queue: concurrency * 4,
0 commit comments