From: matz@... (Yukihiro Matsumoto) Date: 2001-01-23T15:02:08+09:00 Subject: [ruby-talk:9751] Re: Threads and I/O In message "[ruby-talk:9750] Threads and I/O" on 01/01/23, "Hal E. Fulton" writes: |Is there any way for the main thread to kill a thread |that is doing, e.g., a gets? | |Crude example below. require 'timeout' str = nil begin timeout(5) do str = gets end rescue TimeoutError ... you have timeout ... end matz.