DNS::Un...ncQuery(3)

πŸ“¦ version 0.29, in alpine 3.24

πŸ’– 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