|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Non-blocking IO and threadsby BrowserUk (Pope) |
| on Oct 06, 2011 at 17:11 UTC ( #930022=note: print w/ replies, xml ) | Need Help?? |
|
This code will hang at count = 10 until something is read from the command prompt. How do I avoid this block? That isn't what happens running your code on my system. I waited until the count reached 14 the typed 'x' 3 times and ^C once:
Hard to advise on how to avoid something that doesn't happen? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||