summaryrefslogtreecommitdiff
path: root/alot/buffers/thread.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-20 22:04:43 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-20 22:04:43 +0100
commit21843511ef9e0482da917c9e01f1add1949fabde (patch)
treed6d5264d1641671c1171195c44ef2b7f490b6fd7 /alot/buffers/thread.py
parent6b2a8ee809353f8a18f0bc6ac4b9af30e66d8762 (diff)
buffers: make get_info() asynchronous
Allows computing message/thread counts asynchronously in a separate thread.
Diffstat (limited to 'alot/buffers/thread.py')
-rw-r--r--alot/buffers/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index 47b7f9d0..30d313af 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -97,7 +97,7 @@ class ThreadBuffer(Buffer):
for tag in tags]
return ' '.join(trans)
- def get_info(self):
+ async def get_info(self):
info = {}
info['subject'] = self.thread.subject
info['authors'] = self.thread.get_authors_string()