def messages(data: Foobar, record): await asyncio.sleep(0.1) print(f"{data.foo}: {data.bar}: {record}")