and 1 contributors
my $dns = DNS::Unbound->new(); my $query = $dns->resolve_async( 'example.com', 'A' ); # Ordinary ES6 Promise semantics: $query->then( .. )->then( .. ); $query->cancel();
In addition to the methods inherited from Promise::ES6, this class provides:
Cancels an in-progress DNS query. Returns nothing.
NOTE: This will leave the promise unresolved.