We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e11a7e commit c93a0b5Copy full SHA for c93a0b5
lib/debug/thread_client.rb
@@ -861,16 +861,23 @@ def make_breakpoint args
861
class SuspendReplay < Exception
862
end
863
864
+ # Support for ruby 3.2+
865
if ::Fiber.respond_to?(:blocking)
866
private def fiber_blocking
867
::Fiber.blocking{yield}
868
869
+ # Support for ruby 3.0+
870
+ elsif ::Fiber.respond_to?(:blocking?)
871
+ private def fiber_blocking
872
+ ::Fiber.new(blocking: true) {yield}
873
+ end
874
+ # Default action for ruby 2.6+
875
else
876
877
yield
878
879
-
880
+
881
882
def wait_next_action
883
fiber_blocking{wait_next_action_}
0 commit comments