DNS::Un...ncQuery(3)
π NAME π
DNS::Unbound::AsyncQuery β bestie, welcome to the DNS::Un...ncQuery(3) page from the User Contributed Perl Documentation. This is all about the object you get when a DNS::Unbound query is being asynchronous and doing its main character thing. β¨
β¨ SYNOPSIS β¨
my $dns = DNS::Unbound->new();
my $query = $dns->resolve_async( 'example.com', 'A' );
# Ordinary ES6 Promise semantics:
$query->then( .. )->then( .. );
$query->cancel();
π¦ DESCRIPTION π¦
Okay so this object literally represents the result of an asynchronous DNS::Unbound query. It implements a standard promise interface and also gives you a cancellation mechanism. π
The promise resolves with a DNS::Unbound::Result instance. It rejects with a DNS::Unbound::X::ResolveError instance that describes the failure. No cap. π
πΈ METHODS πΈ
In addition to the then(), catch(), and finally() methods β see Promise::ES6 if youβre unsure of how to use those β this class provides:
π OBJ->cancel() π
OBJ->cancel()β cancels an in-progress DNS query. Returns nothing. π
β οΈ NOTE: This will leave the promise unresolved.
Thatβs the whole page, bestie π«Ά β sign-off vibes: source/version perl v5.42.2, date 2026-02-15, and footer label DNS::Un...ncQuery(3). Bye π
π¦ where this page comes from
- alpine 3.24: perl-dns-unbound-doc 0.29-r3 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms