Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
There are a few downsides to this method. It is non-portable, needing Bash and GNU sleep. You have to use temp files for communication. Named pipes seem to lock up. On the plus side threads can echo to the output, and it looks like echo is atomic.