def register(self, event, func):
logger.debug('Registering event: %s, %s from %s',
event,
func.__name__,
inspect.getabsfile(func))
if not asyncio.iscoroutinefunction(func):
func = asyncio.coroutine(func)
self._endpoints[event].append(func)
评论列表
文章目录