From: Guillaume Marcais Date: 2005-06-29T03:49:16+09:00 Subject: Re: C-like ugliness of Kernel#select On Wed, 2005-06-29 at 03:16 +0900, C Erler wrote: > IO has such methods as #closed? and #eof? to find much-needed information > about IO status, but it doesn't have anything like #read_ready? or > #write_ready? that would be useful for anyone not wanting blocking IO. The > only way to do this is with the C-like ugly-hackishness that is > Kernel#select. Look in RAA for io-wait. > Does anyone have a good argument for not adding a few more methods to IO in > the Ruby distribution itself ? Does anybody think it would be a good idea to > submit this as an RCR ? It could be useful. > If those are added, would we be able to remove > Kernel#select in the next "we don't care about backward compatibility" Ruby > version ? No. Kernel#select would still be useful to wait on many IO streams at once. Guillaume.