NAME

Mojo::Promise::Role::Any - Fulfill when all of the promises are rejected

SYNOPSIS

        use Mojo::Promise;

        my $none_promise = Mojo::Promise
                ->with_roles( '+None' )
                ->none( @promises );

DESCRIPTION

Make a new promise that fulfills when all promises are rejected, and rejects otherwise.

none( @promises )

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.

SEE ALSO

Mojolicious, Mojo::Promise, Role::Tiny

SOURCE AVAILABILITY

This source is in Github:

        https://github.com/briandfoy/mojo-promise-role-higherorder

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Copyright © 2018-2021, brian d foy, All Rights Reserved.

You may redistribute this under the terms of the Artistic License 2.0.