Event loop integration

pycares can be integrated in an already existing event loop without much trouble. The examples folder contains several examples:

  • cares-select.py: ntegration with plain select
  • cares-resolver.py: integration with the pyuv event loop
  • cares-asyncio.py: integration with the asyncio framework

Additionally, Tornado provides integration with pycaes through a resolver module.