Prima::...nyEvent(3)

πŸ“¦
version 1.78 Β· 5 versions
, in fedora 44

πŸ’– Prima::sys::AnyEvent β€” the AnyEvent bridge ✨

okay bestie so this is Prima::...nyEvent(3) from the User Contributed Perl Documentation β€” yes the name has dots in it, it's a whole thing, don't worry about it πŸ’…


🌸 SYNOPSIS 🌸

use Prima qw(sys::AnyEvent);
use AnyEvent;

my $ev = AnyEvent->timer(after => 1, cb => sub { print "waited 1 second!\n" });
Prima->run;

like. look at that. that's the whole vibe. you load it, you make an AnyEvent timer, you hand the reins to Prima->run, and the timer just happens while Prima is doing its thing. iconic behavior honestly πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So this is an experiment β€” say it with me, an experiment β€” to bring AnyEvent::Impl::Prima into the toolkit's core 🫢

And the tea? The code is almost 100% from there. Like, it's not a rewrite, it's not a glow-up, it's basically the same code moved into the core. no cap. 😭


πŸ‘‘ AUTHORS πŸ‘‘

  • Zsban Ambrus
  • Max Maischein
  • Dmitry Karasik

three legends, one bridge, we love to see it 🌈


⭐ SEE ALSO ⭐

  • examples/socket_anyevent.pl

go read the example bestie it's right there, it's giving tutorial energy ✨


πŸŽ€ sign-off πŸŽ€

that's the whole page!! this lil doc ships with perl v5.42.3 and it was dated 2026-09-16, so if you're reading this from the future β€” hi, you're doing great πŸ’œ

go forth and bridge your event loops, bestie. you got this. periodt πŸ’…πŸ¦‹

πŸ“¦ where this page comes from