Suppose I have a function that tests for some condition, e.g.

(define current-user (make-parameter #f))
(define (current-user-set?) (not (false? (current-user)))

What is the best way to say "wait until 'current-user-set?' returns true"?
I've been through the Events chapter in the Reference and nothing seems
like a great fit.  I could do polling via sleep or alarm-evt but that seems
inefficient.  Is there a better way?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKocbPgjcFAF_o2g6mhZBEH8PpeGyJ4CwznKc3DZkMjY%3DGw%40mail.gmail.com.

Reply via email to