import asyncio import asyncpg async def listener(connection, pid, channel, payload): print(connection, pid, channel, pay