diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 17:37:11 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 17:37:11 +0200 |
commit | 57520beea7ef83311be10be8acab4b34d2e10bf5 (patch) | |
tree | 13c4f26284756fda32332fb8e6e10d01886b27d4 /docs | |
parent | caba9c5467fb66fb722d6ebc94190ed093fc9d6a (diff) | |
download | mastodon.py-57520beea7ef83311be10be8acab4b34d2e10bf5.tar.gz |
Improve on_abort handler
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index 56e0756..fc8c003 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -815,7 +815,8 @@ will return a handle corresponding to the open connection. If, in addition, `asy | |||
815 | the thread will attempt to reconnect to the streaming API if any errors are encountered, waiting | 815 | the thread will attempt to reconnect to the streaming API if any errors are encountered, waiting |
816 | `async_reconnect_wait_sec` seconds between reconnection attempts. Note that no effort is made | 816 | `async_reconnect_wait_sec` seconds between reconnection attempts. Note that no effort is made |
817 | to "catch up" - events created while the connection is broken will not be received. If you need to make | 817 | to "catch up" - events created while the connection is broken will not be received. If you need to make |
818 | sure to get absolutely all notifications / deletes / toots, you will have to do that manually. | 818 | sure to get absolutely all notifications / deletes / toots, you will have to do that manually, e.g. |
819 | using the `on_abort` handler to fill in events since the last received one and then reconnecting. | ||
819 | 820 | ||
820 | The connection may be closed at any time by calling the handles close() method. The | 821 | The connection may be closed at any time by calling the handles close() method. The |
821 | current status of the handler thread can be checked with the handles is_alive() function, | 822 | current status of the handler thread can be checked with the handles is_alive() function, |