文件名称:p5-Promise-ES6:CPAN的Promise :: ES6
文件大小:56KB
文件格式:ZIP
更新时间:2024-03-13 03:39:19
Perl
姓名 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 $promise3 = $promise->catch( sub { .. } ); my $promise4 = $promise->finally( sub { .. } ); my $resolved =
【文件预览】:
p5-Promise-ES6-master
----.github()
--------workflows()
----t()
--------then_catch.t(545B)
--------finally.t(2KB)
--------then_success_with_no_handler.t(841B)
--------race_fail.t(1KB)
--------race_async.t(1KB)
--------then.t(537B)
--------then_promise.t(2KB)
--------race_success.t(1KB)
--------all_async.t(1KB)
--------reject.t(2KB)
--------global_destruction.t(402B)
--------use_event_mojolicious.t(493B)
--------lib()
--------catch_asyncreject.t(702B)
--------allsettled.t(2KB)
--------memory_leaks.t(333B)
--------future.t(2KB)
--------unhandled_rejection.t(7KB)
--------async_await.t(898B)
--------resolve.t(1KB)
--------mojo.t(607B)
--------multi_then.t(641B)
--------await_with_async.t(781B)
--------ioasync.t(565B)
--------await_then_with_async.t(1KB)
--------then_success.t(2KB)
--------async_await_hold_ref.t(826B)
--------no_leak_stashed_ref.t(693B)
--------await.t(1KB)
--------use_event_anyevent.t(400B)
--------race.t(1KB)
--------catch.t(2KB)
--------all.t(3KB)
--------use_event_ioasync.t(520B)
--------anyevent.t(400B)
----Makefile.PL(2KB)
----lib()
--------Promise()
----Changes(6KB)
----.travis.yml(603B)
----LICENSE(20KB)
----README.md(10KB)
----MANIFEST(994B)
----.gitignore(328B)