diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-20 22:04:43 +0100 |
commit | 21843511ef9e0482da917c9e01f1add1949fabde (patch) | |
tree | d6d5264d1641671c1171195c44ef2b7f490b6fd7 /alot/buffers/buffer.py | |
parent | 6b2a8ee809353f8a18f0bc6ac4b9af30e66d8762 (diff) |
buffers: make get_info() asynchronous
Allows computing message/thread counts asynchronously in a separate
thread.
Diffstat (limited to 'alot/buffers/buffer.py')
-rw-r--r-- | alot/buffers/buffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/buffers/buffer.py b/alot/buffers/buffer.py index d5b662eb..f78ae0a5 100644 --- a/alot/buffers/buffer.py +++ b/alot/buffers/buffer.py @@ -28,7 +28,7 @@ class Buffer: """called before buffer is closed""" pass - def get_info(self): + async def get_info(self): """ return dict of meta infos about this buffer. This can be requested to be displayed in the statusbar. |