From 50c8e34080d16e43c50049e0627176f20252e453 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Thu, 19 Dec 2019 01:51:31 +0900 Subject: [PATCH] Fix README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6630efa..a6df840 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,9 @@ import time def main() chat = LiveChat("G1w62uEMZ74", callback = func) - #other background operation. + while chat.is_alive(): + time.sleep(3) + #other background operation. #callback function is automatically called periodically. def func(data): @@ -58,7 +60,9 @@ import asyncio async def main(): chat = LiveChatAsync("G1w62uEMZ74", callback = func) - #other background operation. + while chat.is_alive(): + await asyncio.sleep(3) + #other background operation. #callback function is automatically called periodically. async def func(data):