diff options
author | Stan Lo <stan001212@gmail.com> | 2023-08-20 11:40:42 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-20 10:40:55 +0000 |
commit | 7c226291d344c29236d51c604f885af05e7f1add (patch) | |
tree | 08d5181f45cb2cb87010c8ffe49cf5b9d7dde904 /lib/reline/windows.rb | |
parent | 35442005132e60a728b59f0811da10fba95a851e (diff) | |
download | ruby-7c226291d344c29236d51c604f885af05e7f1add.tar.gz |
[ruby/reline] Remove Timeout usage
(https://github.com/ruby/reline/pull/580)
Timeout's implementation relies on Thread, which would conflict with
`ruby/debug`'s thread-freezing implementation and has casued issues like
- ruby/debug#877
- ruby/debug#934
- ruby/debug#1000
This commit avoids the issue by completely removing the use of Timeout.
https://github.com/ruby/reline/commit/d4f0cd3fe1
Diffstat (limited to 'lib/reline/windows.rb')
-rw-r--r-- | lib/reline/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/windows.rb b/lib/reline/windows.rb index 7ea2a00f63..6f635f630f 100644 --- a/lib/reline/windows.rb +++ b/lib/reline/windows.rb @@ -295,7 +295,7 @@ class Reline::Windows yield end - def self.getc + def self.getc(_timeout_second) check_input_event @@output_buf.shift end |