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:
acrefoot 2013-09-24 11:47:00 -04:00 committed by Zev Benjamin
parent 5b83144e1f
commit a56cdac823

View file

@ -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)