From 7d07a715a2398189b98539247db711735c2b319e Mon Sep 17 00:00:00 2001 From: Lonami Date: Tue, 19 Sep 2017 13:05:57 +0200 Subject: [PATCH] Encourage to use active polling --- Working-with-Updates.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Working-with-Updates.md b/Working-with-Updates.md index 9714b17..2e964ea 100644 --- a/Working-with-Updates.md +++ b/Working-with-Updates.md @@ -1,5 +1,7 @@ There are two ways in which you may want to use the library. Some people will simply want to show information about updates as they come, or invoke other requests as certain events happen, while other people don't care about processing updates at all. A mix between all of these is also possible. +If you're going to have the main thread idle (e.g. `while True: sleep(1)`), you should instead put it to good use as described on [Reacting to updates](#reacting-to-updates) instead just "listening" for updates. + ## Listening for updates By default, the library won't process updates at all (while it will still send periodic pings to ensure that the connection stays alive). If you want to listen for updates, simply add a new handler: