Promise::ES6::Future - Translation to/from Future
This module provides logic to convert between promises and Future instances.
Returns a Promise:ES6 instance from the given $FUTURE. (If $FUTURE is not a Future instance, $FUTURE is returned.)
Returns a Future instance from the given $PROMISE. (If $PROMISE is a Future instance, $PROMISE is returned.)
Note that this function can work with promise objects that aren’t Promise::ES6 instances. In fact, anything that isn’t a Future instance will cause this function to create a new Future.
To install Promise::ES6, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Promise::ES6
CPAN shell
perl -MCPAN -e shell install Promise::ES6
For more information on module installation, please visit the detailed CPAN module installation guide.