it works for me. thx :)
I still want to know what's wrong with my demo code, it seems like 
mojo::ioloop's counter went some wrong, but I can't find it.

在 2017年11月14日星期二 UTC+8下午6:22:44,sri写道:
>
>     my $time;
>>     $ua->get_p('/time')->then(sub { $time = $tx->res->json->{now} 
>> })->wait;
>>     say $time;
>>
>
> I did a typo, oops.
>
>     my $time;
>     $ua->get_p('/time')->then(sub { $time = shift->res->json->{now} 
> })->wait;
>     say $time;
>
> --
> sebastian
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to