Mojo::Promise::Role::Any - Fulfill when all of the promises are rejected
use Mojo::Promise; my $none_promise = Mojo::Promise ->with_roles( '+None' ) ->none( @promises );
Make a new promise that fulfills when all promises are rejected, and rejects otherwise.
Takes a lists of promises (or thenables) and returns another promise that fulfills when all of the promises are rejected.
If none of the promises reject, the none promise rejects. If all of the promises resolve then this is rejected.
If you pass no promises, the none promise fulfills.
Mojolicious, Mojo::Promise, Role::Tiny
This source is in Github:
https://github.com/briandfoy/mojo-promise-role-higherorder
brian d foy, <briandfoy@pobox.com>
<briandfoy@pobox.com>
Copyright © 2018-2024, brian d foy, All Rights Reserved.
You may redistribute this under the terms of the Artistic License 2.0.
To install Mojo::Promise::Role::HigherOrder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::Promise::Role::HigherOrder
CPAN shell
perl -MCPAN -e shell install Mojo::Promise::Role::HigherOrder
For more information on module installation, please visit the detailed CPAN module installation guide.