From: MenTaLguY Date: 2007-05-13T07:30:01+09:00 Subject: Re: Queue, with timeout. (Thread.notify...) --=-c22E8jc4qfI8KyrDkS1h Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2007-05-13 at 04:17 +0900, Avdi Grimm wrote: > Use 'timeout': I'd be cautious of using timeout, since not all of stdlib is safe with respect to asynchronous exceptions (it's sometimes very difficult to do properly). I think it's okay with the old thread.rb implementation of Queue specifically, but I'm not 100% sure about the current C implementation or other Ruby implementations like JRuby.=20 -mental --=-c22E8jc4qfI8KyrDkS1h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBGRj/nSuZBmZzm14ERAn+fAJsHORX8EU/tKNPkSxATFtB+lqSk+ACeOQe0 W7RLyb+61HoEqnAvr3iPmzI= =0Zk7 -----END PGP SIGNATURE----- --=-c22E8jc4qfI8KyrDkS1h--