def _callback()

in elastic_agent_client/util/async_tools.py [0:0]


    def _callback(self, task):
        if task.cancelled():
            logger.error(
                f"Task {task.get_name()} was cancelled",
            )
        elif task.exception():
            logger.exception(
                f"Exception found for task {task.get_name()}: {task.exception()}",
                exc_info=task.exception(),
            )