my $ua = Mojo::UserAgent->new;
$ua->on(start => sub {
my ( $ua, $tx ) = @_;
# TODO: Figure out how to tell if $tx->req is blocking or no
}
That resembles what I ended up doing, which was to override Mojo::UserAgent->start in my module.
You received this message because you are subscribed to a topic in the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mojolicious/cHL2wr2-6yc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mojolicious...@googlegroups.com.