method start no now blocks main cycle
This commit is contained in:
@@ -21,8 +21,10 @@ class MyApp(ConfigManager):
|
||||
|
||||
async def main():
|
||||
app = MyApp("config.yaml")
|
||||
await app.start()
|
||||
logger.info("App started")
|
||||
await app.start()
|
||||
|
||||
logger.info("App finished")
|
||||
|
||||
while True:
|
||||
await asyncio.sleep(1)
|
||||
|
||||
Reference in New Issue
Block a user