Corion / future-http

provide the most appropriate HTTP client with a Future API
Artistic License 2.0
3 stars 3 forks source link

Proposal: Add $ua->is_async method #10

Closed haukex closed 4 years ago

haukex commented 4 years ago

This allows one to write e.g.

my $ua = Future::HTTP->new();
warn "UA is synchronous, requests are blocking"
    unless $ua->is_async;