mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 08:25:20 +08:00
benchmark_driver: Stop using Ractor#take
This commit is contained in:
1 parent
24ac9f11de
commit
95235fd528
1 file changed
+1
-1
@@ -87,7 +87,7 @@ __bmdv_ractors << Ractor.new(__bmdv_loop_after - __bmdv_loop_before) { |__bmdv_l
|
||||
<% end %>
|
||||
|
||||
# Wait for all Ractors before executing code to write results
|
||||
__bmdv_ractors.map!(&:take)
|
||||
__bmdv_ractors.map!(&:value)
|
||||
|
||||
<% results.each do |result| %>
|
||||
File.write(<%= result.dump %>, __bmdv_ractors.shift)
|
||||
|
||||
Reference in new issue
Block a user