Long running background asyncio task

I need to run an asynchronous infinite loop besides Dash. Is it possible?

async def async_loop():
    while True:
        print("Watch me running!")

I tried this, but it didn’t work:

async def main():
    loop = asyncio.get_event_loop()
    loop.create_task(async_loop())
asyncio.run(main())
app.run()