blob: 5d6d5a2b077935ee83e2ccd8e28650a75e0de082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
module:: dns.asyncbackend
.. _async-backend:
Asynchronous Backend Functions
==============================
Dnspython has a "backend" for Trio, Curio, and asyncio which implements
the library-specific functionality needed by the generic asynchronous
DNS code.
Dnspython attempts to determine which backend is in use by "sniffing" for it
with the ``sniffio`` module if it is installed. If sniffio is not available,
dnspython try to detect asyncio directly.
.. autofunction:: dns.asyncbackend.get_default_backend
.. autofunction:: dns.asyncbackend.set_default_backend
.. autofunction:: dns.asyncbackend.sniff
.. autofunction:: dns.asyncbackend.get_backend
|