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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.