From a56cdac823bda5267ef4e2a41ba75482bccb2db4 Mon Sep 17 00:00:00 2001 From: acrefoot Date: Tue, 24 Sep 2013 11:47:00 -0400 Subject: [PATCH] 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) --- examples/print-messages | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/print-messages b/examples/print-messages index 8b2186b..ac66dd0 100755 --- a/examples/print-messages +++ b/examples/print-messages @@ -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)