diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-10-16 14:25:58 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-11-07 23:39:50 +1300 |
commit | a08ee8330d3d739467bfa34deeb797d83e59ed3c (patch) | |
tree | d14bc8f1417f39f9924b93343ddfd6451b3db8c3 /test/fiber/http.rb | |
parent | 656d4cddaf2debd0c66b9bd980f51bcbf0849bd6 (diff) |
Rename to `Fiber#set_scheduler`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3742
Diffstat (limited to 'test/fiber/http.rb')
-rw-r--r-- | test/fiber/http.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiber/http.rb b/test/fiber/http.rb index e2a007bc84..ad51ae3c76 100644 --- a/test/fiber/http.rb +++ b/test/fiber/http.rb @@ -19,7 +19,7 @@ def fetch_topics(topics) end.resume end - Thread.scheduler&.run + Thread.fiber_scheduler&.run return responses end @@ -32,7 +32,7 @@ def sweep(repeats: 3, **options) Thread.new do Benchmark.realtime do scheduler = Scheduler.new - Thread.current.scheduler = scheduler + Fiber.set_scheduler scheduler repeats.times do Fiber.new(**options) do |