I have several asynchronous functions. If I call _main(), I can't use the second _check() function, because _main() runs continuously in a while loop. Can I run _main() 'in the background' to make the rest of the functions available?
import asyncio
async def _main(self):
while True:
...
Update database
...
async def _check(self):
await self._confirm_update()
async def process(self):
if self.command in ["main"]:
await self._main()
elif self.command in ["check"]:
await self._check()