Changed the algorithm of the start method

This commit is contained in:
2025-11-01 21:00:14 +03:00
parent ffd758d9a4
commit 311870fd73
3 changed files with 9 additions and 8 deletions

View File

@@ -21,10 +21,11 @@ class MyApp(ConfigManager):
async def main():
app = MyApp("config.yaml")
app.start()
await app.start()
logger.info("App started")
await asyncio.sleep(20)
await app.stop()
while True:
await asyncio.sleep(1)
if __name__ == "__main__":
asyncio.run(main())