[plt-scheme] value-based event?

From: YC (yinso.chen at gmail.com)
Date: Thu Jan 21 12:39:45 EST 2010

Works like a charm!  Thanks Noel.

yc

On Thu, Jan 21, 2010 at 2:44 AM, Noel Welsh <noelwelsh at gmail.com> wrote:

> You could just use a channel for this (or a semaphore, I suppose).
> When there is a value in the channel it will unblock.
>
> HTH,
> N.
>
> On Thu, Jan 21, 2010 at 9:12 AM, YC <yinso.chen at gmail.com> wrote:
> > Hi all -
> >
> > is it possible to create an event based on whether a variable has value -
> if
> > it is #f, then the event blocks, and when the event gets set to something
> > else other than #f, the event unblocks?
> >
> ...
> > yc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100121/bf5b8a5c/attachment.html>

Posted on the users mailing list.