姓名 Promise :: ES6-Perl中的ES6风格承诺 概要 use Promise::ES6; # OPTIONAL. And see below for other options. Promise::ES6::use_event('IO::Async', $loop); my $promise = Promise::ES6->new( sub { my ($resolve_cr, $reject_cr) = @_; # .. } ); my $promise2 = $promise->then( sub { .. }, sub { .. } ); my $prom