タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

asyncとpromiseに関するgfxのブックマーク (2)

  • Promises/Future と Async::Defer - DebugIto's diary


    You're Missing the Point of Promises · GitHub "That Second Paragraph"Promises4  (fulfilled and accepted)  (fufilled but rejected)  (rejected but handled) rethrow (rejected and rethrown
    Promises/Future と Async::Defer - DebugIto's diary
  • Promises - An implementation of Promises in Perl - metacpan.org

    NAME Promises - An implementation of Promises in Perl VERSION version 1.04 SYNOPSIS use AnyEvent::HTTP; use JSON::XS qw[ decode_json ]; use Promises qw[ collect deferred ]; sub fetch_it { my ($uri) = @_; my $d = deferred; http_get $uri => sub { my ($body, $headers) = @_; $headers->{Status} == 200 ? $d->resolve( decode_json( $body ) ) : $d->reject( $body ) }; $d->promise; } my $cv = AnyEvent->condv

  • 1