RxPerl::AnyEvent(3pm)
π RxPerl::AnyEvent β the AnyEvent adapter for RxPerl
okay bestie, so this is RxPerl::AnyEvent, and it lives in the User Contributed Perl Documentation section, third section of the manual, iykyk π
β¨ SYNOPSIS β¨
here's the whole vibe in one go, no cap:
use RxPerl::AnyEvent ':all';
use AnyEvent;
sub make_observer ($i) {
return {
next => sub {say "next #$i: ", $_[0]},
error => sub {say "error #$i: ", $_[0]},
complete => sub {say "complete #$i"},
};
}
my $o = rx_interval(0.7)->pipe(
op_map(sub {$_[0] * 2}),
op_take_until( rx_timer(5) ),
);
$o->subscribe(make_observer(1));
AnyEvent->condvar->recv;
like, look at her go πββοΈπ¨ interval every 0.7, map each value by doubling it, and it keeps going until the 5-second timer says "we're done here". then AnyEvent->condvar->recv just sits there and keeps the party alive. iconic.
π¦ DESCRIPTION π¦
RxPerl::AnyEvent is the module that lets you use the RxPerl Reactive Extensions inside your AnyEvent app. that's it, that's the whole thing. it's giving "glue module" but make it serve π
π DOCUMENTATION π
the documentation over at RxPerl applies to this module too β same energy, same facts, so go read that one if you want the deep lore πβ¨
π NOTIFICATIONS FOR NEW RELEASES π
you can start receiving emails for new releases of this module, or other modules, over at <https://perlmodules.net> π«Ά like, stay in the loop bestie, don't let a new release drop without you knowing.
πΈ COMMUNITY CODE OF CONDUCT πΈ
the Community Code of Conduct can be found here. yes, be nice, be kind, that's the vibe π
π§ LICENSE π§
Copyright (C) 2020 Karelcom OΓ.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR π
Alexander Karelas <karjala@cpan.org> β the main character who made this happen π
k so that's the whole page, bestie β¨ written by Alexander Karelas <karjala@cpan.org>, Β© 2020 Karelcom OΓ, free software under the same terms as Perl itself β and this copy was rendered by perl v5.42.2 on 2026-02-15 π see you in the group chat ππ¦
π¦ where this page comes from
- alpine 3.24: perl-rxperl-anyevent-doc 6.8.1-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms