[plt-scheme] Idiom for suspending the top level thread

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Tue Jun 13 07:41:57 EDT 2006

Thanks.  Cookbooked for posterity:



--- Matthew Flatt <mflatt at cs.utah.edu> wrote:

> At Tue, 13 Jun 2006 03:54:04 -0700 (PDT), Noel Welsh
> wrote:
> > What is the preferred idiom for suspending the top
> level
> > thread to stop a program exiting? 
> My favorite is
>  (sync (make-semaphore))
> or, in MrEd,
>  (yield (make-semaphore))

Email: noelwelsh <at> yahoo <dot> com   noel <at> untyped <dot> com
AIM: noelhwelsh
Blogs: http://monospaced.blogspot.com/  http://www.untyped.com/untyping/

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

Posted on the users mailing list.