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 84cd1f2 commit 70d7972Copy full SHA for 70d7972
lib/async/container/hybrid.rb
@@ -35,7 +35,7 @@ def run(count: nil, forks: nil, threads: nil, **options, &block)
35
processor_count = Container.processor_count
36
count ||= processor_count ** 2
37
forks ||= [processor_count, count].min
38
- threads = (count / forks).ceil
+ threads ||= (count / forks).ceil
39
40
forks.times do
41
self.spawn(**options) do |instance|
0 commit comments