Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Drunk at the monastery

by Athanasius (Chancellor)
on Oct 26, 2012 at 09:17 UTC ( #1001029=note: print w/replies, xml ) Need Help??


in reply to Drunk at the monastery

What’s happening here?

When questing Acolyte or puzzled Scribe
Is answered in a harsh, sarcastic jibe,
Perchance he liquid solace doth imbibe.

The careless insult (consequence unthunk
By the insulter) goads the sorry monk
To drown his sorrows, and anon — he’s drunk.

But only junior monks abuse libation:
For ev’ry Friar, at his graduation,
Embraces the ideal of Moderation.

© 2012

Athanasius <°(((><contra mundum

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001029]
help
Chatterbox?
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?
[ambrus]: Because that could break AnyEvent code, which is why I added a guard.
[ambrus]: (It might be easier to use the callback scalar as a guard, as in $c and &$c(); $c = ();)
[Corion]: ambrus: Hurr - yes, that might happen, as Prima will queue lots of stuff (Well, Windows will)
[Corion]: But I'm really amazed that it just took this little code (plus the idle handler I have in mind and something else dk suggested)
[Corion]: ambrus: I wrote the handler so that it stops the timer if it's supposed to be a one-shot

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2016-12-09 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.