RxPerl::AnyEvent(3pm)

πŸ“¦ version 6.8.1, in alpine 3.24

πŸ’œ 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