NAME

DNS::Unbound::AnyEvent - DNS::Unbound for AnyEvent

SYNOPSIS

my $cv = AnyEvent->condvar();

my $unbound = DNS::Unbound::AnyEvent->new();

$unbound->resolve_async("perl.org", "A")->then(
    sub {
        my $result = shift;

        # ...
    }
)->finally($cv);

$cv->recv();

DESCRIPTION

This class provides native AnyEvent compatibility for DNS::Unbound.