nanome.util.asyncio module

async_callback(fn)[source]
exception_wrapper(fn, args, kwargs)[source]

Wrap all callbacks to catch exceptions.

Based on this documentation https://docs.python.org/3.6/library/asyncio-dev.html?highlight=exception#detect-exceptions-never-consumed

handle_exception(exc_type, exc_value, exc_traceback)[source]

Make sure uncaught exceptions are logged.