Having issues using AnyEvent::DNS with a call back

Marc Lehmann schmorp at schmorp.de
Wed Jun 16 20:03:38 CEST 2010


On Wed, Jun 16, 2010 at 07:13:05PM +0200, Robin Redeker <elmex at ta-sa.org> wrote:
> Oh, well, I made a mistake there myself. There still needs to be something
> blocking until something is done. Like for instance a second condvar
> or an explicit call to an event loop. Setting cb() will not change the
> behaviour.

We talked about it before, but I am almost convinced to add AnyEvent->loop
and AnyEvent->one_event methods on the grounds that, even though they should
not be used inside modules, there is merit in having event-loop independent
main programs (something anyevent was not designed for).

That *might* help people with this common oversight.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list