Skip to content

Commit b1c6fd1

Browse files
AlexanderZagaynovpitr-ch
authored andcommitted
rename args to opts as it is de facto
1 parent 5af37cc commit b1c6fd1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/concurrent/executor/abstract_executor_service.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ class AbstractExecutorService < Synchronization::LockableObject
1919
attr_reader :name
2020

2121
# Create a new thread pool.
22-
def initialize(*args, &block)
22+
def initialize(opts = {}, &block)
2323
super(&nil)
2424
synchronize do
25-
ns_initialize(*args, &block)
26-
opts = args.first || {}
25+
ns_initialize(opts, &block)
2726
@name = opts.fetch(:name) if opts.key?(:name)
2827
end
2928
end

0 commit comments

Comments
 (0)