[racket-dev] Racket Guide chapter on concurrency

From: David T. Pierson (dtp at mindstory.com)
Date: Mon Oct 7 22:59:49 EDT 2013

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

Posted on the dev mailing list.