NAME

Evo::Prm

VERSION

version 0.0227

DESCRIPTION

This module provides experimental pure syntax to Evo::Promise

SYNOPSYS

use Evo '-Prm *; -Loop *';

sub download($url) { uc $url }

my $p = prm {

  then {
    promise_all me => download('http://alexbyk.com'), g => download('http://google.com');
  };

  spread sub(%results) {
    say $results{me};
    say $results{g};
    return $results{me} . $results{g};
  };

  catch sub($e) { };
};

$p->then(sub($v) { say $v });

loop_start;

AUTHOR

alexbyk.com

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by alexbyk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.