package DNS::Unbound::AsyncQuery::PromiseXS;

use strict;
use warnings;

use Promise::XS ();

use parent (
    'DNS::Unbound::AsyncQuery',
    'Promise::XS::Promise',
);

use constant _DEFERRED_CR => \&Promise::XS::deferred;

*_dns_unbound_then = \&Promise::XS::Promise::then;

*_dns_unbound_finally = \&Promise::XS::Promise::finally;

1;