Skip to content

Commit 5cfbfc6

Browse files
committed
Async now uses global thread pool.
1 parent e8ce9ad commit 5cfbfc6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/concurrent/async.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ def executor=(executor)
284284
private
285285

286286
def executor
287-
@__async__executor__ ||= Concurrent::ThreadPoolExecutor.new(
288-
min_threads: 1, max_threads: 1, idletime: 0,
289-
max_queue: 0, overflow_policy: :caller_runs
290-
)
287+
@__async__executor__ ||= Concurrent.configuration.global_task_pool
291288
end
292289
end
293290
end

0 commit comments

Comments
 (0)