Prefer block pass over explicit block
This commit is contained in:
parent
8164de883e
commit
8c4e7cc665
1 changed files with 1 additions and 3 deletions
|
@ -38,9 +38,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def self.call(&block)
|
||||
Parallel.map([block], in_processes: 1) do
|
||||
block.call
|
||||
end.first
|
||||
Parallel.map([block], in_processes: 1, &block.method(:call)).first
|
||||
rescue Parallel::DeadWorker => exception
|
||||
fail Error, exception
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue