AnyEvent driver for Prima
Dmitry Karasik
dmitry at karasik.eu.org
Tue Dec 13 21:28:13 CET 2016
On Tue, Dec 13, 2016 at 06:19:10PM +0100, Marc Lehmann wrote:
> > On Tue, Dec 13, 2016 at 02:47:21PM +0100, ambrus <ambrus at math.bme.hu> wrote:
> > Hello Dmitry Karasik, Corion, and Schmorp.
> >
> > Dmitry: to make a quick summary for you: there is currently nothing known
>
> Ok, ambrus corrected me, apparently, we haven't found a way to get the
> equivalent of "one_event" (do event processing once, then return) - it
> seems neither $::application->yield nor ->go do that (the first one
> apparently returns immediately, the second blocks "forever"). That would be a
> showstopper.
>
> Dmitry: is there a way in Prima to either return from the event loop to
> the caller on some event, or alternatively, is there a way to run the
> event loop blockingly for just one round?
I think I managed to implement exactly that just now: $::application->yield(1)
should do it. The code is only on github though.
--
Sincerely,
Dmitry Karasik
More information about the anyevent
mailing list