From f7f85e4a6b801da11324145460b4e38a97dfc21e Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 21 Oct 2023 14:19:49 +1300 Subject: [PATCH] Support Ruby 3.1+. --- lib/debug/thread_client.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/debug/thread_client.rb b/lib/debug/thread_client.rb index c106a58ec..44bba5e8a 100644 --- a/lib/debug/thread_client.rb +++ b/lib/debug/thread_client.rb @@ -867,10 +867,9 @@ class SuspendReplay < Exception end else private def fiber_blocking - yield + ::Fiber.new(blocking: true){yield}.resume end end - def wait_next_action fiber_blocking{wait_next_action_}