> my $p = $ua->get_p('http://www.google.com'); > https://metacpan.org/pod/Mojo::UserAgent#get_p returns a Mojo::Promise object
> Mojo::Promise->timer(0.01)->then( sub { print "canceling\n"; $p->completed() > } ); > https://metacpan.org/pod/Mojo::Promise doesn't have `completed` method your are calling You have to build Mojo::Transaction via $ua->build_tx and do ->completed on it -- //wbr, Dmitry L. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/CAKgzkX3Ygc68PRRVWE12A%2BgXs85nfSoaM1L%2BzyrhknzejHiSsw%40mail.gmail.com.