AnyEvent driver for Prima
Dmitry Karasik
dmitry at karasik.eu.org
Tue Dec 13 21:48:00 CET 2016
> So, the only thing that would be nice if Prima provided it would be a form
> of idle watchers, because AnyEvent cannot emulate this correctly.
No it does actually - because I never used them, and don't know how they are
supposed to work (called once? called always?). The info I google just now
suggests that it is run every iteration of event loop, and that seems kind of
an overkill, but again probably there's something I don't understand.
> The difficulties (and the added value of AnyEvent) is that we need to find
> out about all the little details, such as whether Prima supports multiple
> io watchers per fh
It does.
> whether it supports fd,
No, but can be added - but if AnyEvent::_dupfd can be used, I'd vote for that instead.
> whether outstanding event
> callbacks will be nullified,
Yes. On a simple level, all callbacks are killed as soon as the object that hosts them
is killed too. For more fine-grained implmenentation, one can un-registed callbacks individually,
but one has to register them explicitly first, and save the resulting handle to address them later.
> what time timers are relative to and probably
They are not relative to anything, a Prima::Timer->new( timeout => 100 ) fires up 10 times a second,
imprecisely :)
--
Sincerely,
Dmitry Karasik
More information about the anyevent
mailing list