From: Martin DeMello Date: 2005-04-09T06:09:39+09:00 Subject: Re: Detecting thread exit immediately Joel VanderWerf wrote: > > @irb.alive? (also annoying), or to have the thread itself notify > > something when it dies (but I can't quite think of how to do it).) > > In line with your last thought, what about writing something to a queue > from the irb thread and then periodically (using a chore) reading the > queue in the main thread? That still won't give me instant feedback, will it? Why I'm so keen on this is that I want the FXIrb panel to stop accepting keystrokes the instant the IRB interpreter exits. Everything I've tried so far either exits the program, or has a brief time where you can type into a theoretically exited widget (mostly since I was focusing on Thread#alive? based solutions). Is there any way I can have FXIrb pass in 'self' to the thread so that it can call methods on it? martin