perl-Mojo-Promisify - Convert callback code to promise based code

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Mojo-Promisify-0.01-alt1.noarch.rpm
Package name perl-Mojo-Promisify
Package version 0.01
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 4.10 KB
Installed size 4.10 KB
the Mojo::Promisify manpage is a utility module that can upgrade your legacy callback
based API to a the Mojo::Promise manpage based API.
It might not be the most efficient way to run your code, but it will allow
you to easily add methods that will return promises.
This method only works with methods that passes on `$err' as the first argument
to the callback, like this:
sub get_stuff_by_id {
my ($self, $id, $cb) = @_;
my $err = "Some error";
my $res = undef;
Mojo::IOLoop->next_tick(sub { $self->$cb($err, $res) });
return $self;
It can however pass on as many arguments as it wants after the `$err' and all
will be passed on to the fulfillment callback in the promise. `$err' on the
other hand will cause the promise to be rejected.
Note that this module is currently EXPERIMENTAL, but it will most probably not
change much.


Package Version Architecture Repository
perl-Mojo-Promisify - - -


Name Value
/usr/share/perl5 -
perl(Mojo/ -
perl(Mojo/ -
perl(Mojo/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Mojo/ = 0.010
perl-Mojo-Promisify = 0.01-alt1


Type URL
Binary Package perl-Mojo-Promisify-0.01-alt1.noarch.rpm
Source Package perl-Mojo-Promisify-0.01-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Mojo-Promisify rpm package:
    # sudo apt-get install perl-Mojo-Promisify



See Also

Package Description
perl-Mojo-Pua-0.010-alt1.noarch.rpm HTTP Client + Evo::Promise
perl-Mojo-Reactor-Epoll-0.009-alt1.noarch.rpm epoll backend for Mojo::Reactor
perl-Mojo-Reactor-Glib-0.002-alt1.noarch.rpm Glib::MainLoop backend for Mojo
perl-Mojo-Reactor-IOAsync-1.000-alt1.noarch.rpm IO::Async backend for Mojo::Reactor
perl-Mojo-Reactor-POE-0.009-alt1.noarch.rpm POE backend for Mojo::Reactor
perl-Mojo-Reactor-UV-1.001-alt1.noarch.rpm UV backend for Mojo::Reactor
perl-Mojo-Redfish-Client-0.03-alt1.noarch.rpm A Redfish client with a Mojo flair
perl-Mojo-Redis-3.24-alt1.noarch.rpm Asynchronous Redis client for L<Mojolicious>
perl-Mojo-Redis2-0.36-alt1.noarch.rpm Pure-Perl non-blocking I/O Redis driver
perl-Mojo-Role-0.999-alt1.noarch.rpm Tiny and simple role system for Mojo (DEPRECATED)
perl-Mojo-Run-0.3-alt1.noarch.rpm asynchronous external command execution for Mojo
perl-Mojo-SAML-0.06-alt1.noarch.rpm A SAML2 toolkit using the Mojo toolkit
perl-Mojo-SMTP-Client-0.18-alt1.noarch.rpm non-blocking SMTP client based on Mojo::IOLoop
perl-Mojo-SNMP-0.13-alt1.noarch.rpm Run SNMP requests with Mojo::IOLoop
perl-Mojo-Sendgrid-0.05-alt1.noarch.rpm Sendgrid API implementation for the Mojolicious framework