Make call_on_each_{message,event} examples more clear
Before these examples weren't obviously blocking calls (they seemed more like a callback registration, which may make more sense in the future) (imported from commit 78fdf98d791b19843526437c710901d8dff62e8c)
This commit is contained in:
parent
5b83144e1f
commit
a56cdac823
|
@ -45,4 +45,5 @@ client = zulip.init_from_options(options)
|
|||
def print_message(message):
|
||||
print message
|
||||
|
||||
# This is a blocking call, and will continuously poll for new messages
|
||||
client.call_on_each_message(print_message)
|
||||
|
|
Loading…
Reference in a new issue