[racket-users] publication hyperlinks in Racket reference?

2020-11-16 Thread Tim Meehan
There are a lot of really good publications out there by the Racket crowd. I find a lot of them in the usual ways; following this group, Racket News, internet searching, but has anyone considered linking to them from the guide or the reference? Perhaps the body of information is too large and chang

Re: [racket-users] Creating threads that prevent main thread from exiting

2020-11-16 Thread Matthew Flatt
Probably the right choice is to install a flush handler with the current plumber: (define (thread/wait proc) (define t (thread proc)) (plumber-add-flush! (current-plumber) (lambda (h) (thread-wait t))) t) That adds a `thread-wait` in the same sense as flushing a s

[racket-users] Creating threads that prevent main thread from exiting

2020-11-16 Thread Greg Rosenblatt
What is the best way to create threads that will prevent a program from exiting until they have completed their work? I'd like to be able to do this implicitly, without cooperation from the main thread. My first experiment uses `shift` to insert uses of `thread-wait` after the rest of the pro