Hi all - <br><br>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? <br><br>Something like:<br>
<br><div style="margin-left: 40px;">(define x #f)<br>(thread (lambda () <br> (sleep 10) <br> (set! x 1))) <br><br>(sync (has-value-evt x)) ;; unblock when (set! x 1) is reached... <br></div><br>Thanks,<br>
yc<br><br>