Ok. I only partially understand. I want to fully understand. If this thing
got called 10 times at once, we'd be recursing into the event loop 10
times, on top of each other?

I stole the idea from anyevent. Its what their conditional variables do.

So is the only proper way to solve my problem with Mojo::IOLoop::Delay
steps?

-Tripp


On Sat, May 31, 2014 at 3:47 PM, sri <[email protected]> wrote:

> Mojo::IOLoop->singleton->one_tick until $done;  # Let the IOLoop run
>> other things until our web call is done
>>
>
> This is absolutely terrible, don't ever do this, there is only one call
> stack in Perl. It recurses back into the event loop and as soon as there's
> another incoming request that will recurse back into the event loop as
> well...and so on.
>
> --
> sebastian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to