vr has asked for the wisdom of the Perl Monks concerning the following question:
Here they say about web server embedding into foreign event loop. The last line in code example is blocking, isn't it? Do they mean, I follow further link to "one_tick" in Mojo::IOLoop and add a sub-second timer? So that either real event or this timer occur? But most of the time, it will block the "foreign event loop" for 0.5 sec, correct? Is there non-blocking way to check for Mojolicious events?
And this happens in a callback of e.g. IO::Async::Timer::Periodic with e.g. 2 seconds interval, correct? If all this is so, it's ugly as hell.
I know about IO::Async::Loop::Mojo, but it seems to be unhappy about Windows.
P.S. Or did I misinterpret it completely and they mean running 2 event loops in parallel?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Web server embedding" (Mojolicious docs)
by Corion (Patriarch) on May 11, 2017 at 12:59 UTC | |
by vr (Curate) on May 11, 2017 at 16:33 UTC |