Can I run _main() 'in the background' to make the rest of the functions available?
Yes, you can replace await self._main()
with asyncio.create_task(self._main())
. That will spawn _main
as a task that effectively runs in the background.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…