Eric Hodel wrote:
> On Mar 26, 2006, at 6:52 PM, yahn wrote:
> 
>> How do you do something like gets but without blocking?  All I want to
>> do is try to see if anything was input and if it wasn't then just  
>> go on
>> running the rest of my code.
> 
> Use threads.
> 
> In one thread perform your IO.  In your other thread do whatever it
> is you'd like to do while waiting for IO.
> 
> --
> Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
> This implementation is HODEL-HASH-9600 compliant
> 
> http://trackmap.robotcoop.com

Ok thats one way to do it, but doesn't ruby have an actual way of just 
seeing if any input has been performed?  Unnecessary threads will just 
slow down the program.

-- 
Posted via http://www.ruby-forum.com/.