> On Oct 23, 2020, at 10:42 AM, Dmitry L. <dim0...@gmail.com> wrote: > >> 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
Ahh ok. Yeah I realized after my initial response to you that that was what was going on there. (And my mojo isn’t new enough to have the nifty new unhandled-rejection warning.) I’ll look into this (and Sebastian’s as well). Thank you! -FG -- 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/BA7E932D-50B9-4529-876E-5015EED00078%40felipegasper.com.