AnyEvent recursive blocking wait with Plack

Darin McBride darin.mcbride at shaw.ca
Wed Mar 7 16:01:33 CET 2012


On Tuesday March 6 2012 4:59:45 PM Mike Schilli wrote:
> This works well, but Plack requires that the 'app handler' *returns*
> a data structure, whereas AnyEvent typically provides *callbacks*. This

This is where Coro comes in.  It turns events inside out, allowing you to 
return the results of a callback.

I prefer Coro over AE wherever I can.  (Yes, I know, Coro uses AE and works 
with AE, but I'm talking about the model of programming, not the modules 
themselves.)

I'm not sure if you have the ability to install Coro or not, I assume you can 
if you can install AE, but that'd be my first suggestion above anything else.



More information about the anyevent mailing list