No such thing as a small change | |
PerlMonks |
Re: Mojo: non-blocking API callsby Anonymous Monk |
on Nov 28, 2016 at 02:13 UTC ( [id://1176673]=note: print w/replies, xml ) | Need Help?? |
Take a look at Dancer as a proxy, Mojolicious: Websocket example under hypnotoad, real-time output from Mojolicious WebSockets? Do these things raise any questions or answer any questions? Mojo::IOLoop::Delay looks low-level, maybe useful if you're creating a Mojo::UserAgent .... if all you're wanting is to use a Mojo::UserAgent forget about IOLoop::Delay You connect event handlers (callbacks) to the eventloop, the callbacks do a little work and let other callbacks do their work ... only rule of callbacks is not to block
In Section
Seekers of Perl Wisdom
|
|