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():
while True:
# update database
async def check():
# confirm update
async def process(command):
if command == "main":
await main()
elif command == "check":
await check()
mainand` check` are bot commands