-
-
26 Dec 2021 11:17:57 UTC
- Distribution: RxPerl-Mojo
- Module version: v6.8.1
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository (git clone)
- Issues
- Testers
- Kwalitee
Bus factor: 1- 91.38% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (11.5KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- NAME
- SYNOPSIS
- DESCRIPTION
- DOCUMENTATION
- NOTIFICATIONS FOR NEW RELEASES
- COMMUNITY CODE OF CONDUCT
- LICENSE
- AUTHOR
NAME
RxPerl::Mojo - Mojo::IOLoop adapter for RxPerl
SYNOPSIS
use RxPerl::Mojo ':all'; use Mojo::IOLoop; 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)); Mojo::IOLoop->start;
DESCRIPTION
RxPerl::Mojo is a module that lets you use the RxPerl Reactive Extensions in your Mojolicious app or app that uses Mojo::IOLoop.
DOCUMENTATION
The documentation at RxPerl applies to this module too.
NOTIFICATIONS FOR NEW RELEASES
You can start receiving emails for new releases of this, or other, modules, over at https://perlmodules.net.
COMMUNITY CODE OF CONDUCT
The Community Code of Conduct can be found here.
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>
Module Install Instructions
To install RxPerl::Mojo, copy and paste the appropriate command in to your terminal.
cpanm RxPerl::Mojo
perl -MCPAN -e shell install RxPerl::Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.