From: MenTaLguY Date: 2006-02-22T07:51:03+09:00 Subject: Re: [ANN] lazy.rb 0.9.5 -- transparent futures! --=-qKp6M6cBGfHimRwpCOm2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2006-02-22 at 04:01 +0900, Daniel Nugent wrote: > In that case, what I want (I'm so damn greedy :D) is to be able to > raise the exception immediately (in a case where you damned well know > that you're going to need the value and would prefer to fail early) > and I see that that's trivial to implement (just have a conditional > toss the exception up in the thread if some @raise_immediately flag is > set to true). > There's one other thing I was wondering about: What's the prudency of > adding a method to Future to allow the Future to go back to sleep > (release the lock, pass the thread)? In this case, I'm considering > waiting for a resource that some other future/thread might be using, > or waiting for a port to get some data. (mostly implementation details > for that library I mentioned, I'll deal with them, but I'm curious if > there's any issue I'm forgetting). Hmm. Could you give me some examples of the behavior you have in mind? -mental --=-qKp6M6cBGfHimRwpCOm2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD+5mBSuZBmZzm14ERAhOzAKCLGB4FlLX4gGrymjU51xnmdPUF+wCg22Uj 6mbmd42ukUab11RpK8WZ3Q4= =oQMk -----END PGP SIGNATURE----- --=-qKp6M6cBGfHimRwpCOm2--