[racket-dev] Racket Guide chapter on concurrency
On Mon, Oct 07, 2013 at 02:21:26PM -0700, John Clements wrote:
> Isn't this early example:
>
> + at racketblock[
> +(define worker (thread (lambda ()
> + (let loop ()
> + (displayln "Working...")
> + (loop)))))
> +(sleep 2.5)
> +(kill-thread worker)
> +]
>
> ... going to generate a *heck of a lot* of output in 2.5 seconds? How about something like (sleep 0.1) in the display loop?
Good point. I'll fix that in the next commit.
Thanks for looking at it.
David