Works like a charm! Thanks Noel.<br><br>yc<br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 2:44 AM, Noel Welsh <span dir="ltr"><<a href="mailto:noelwelsh@gmail.com">noelwelsh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You could just use a channel for this (or a semaphore, I suppose).<br>
When there is a value in the channel it will unblock.<br>
<br>
HTH,<br>
N.<br>
<div class="im"><br>
On Thu, Jan 21, 2010 at 9:12 AM, YC <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>> wrote:<br>
> Hi all -<br>
><br>
> is it possible to create an event based on whether a variable has value - if<br>
> it is #f, then the event blocks, and when the event gets set to something<br>
> else other than #f, the event unblocks?<br>
><br>
</div>...<br>
> yc<br>
</blockquote></div><br>