mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-19 18:32:47 +03:00
added join method in TelegramClient
This commit is contained in:
parent
0d429f55c5
commit
becee2b0ac
|
@ -1403,3 +1403,13 @@ class TelegramClient(TelegramBareClient):
|
||||||
)
|
)
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
|
|
||||||
|
def join (self):
|
||||||
|
"""
|
||||||
|
Join all the threads spwaned for read;
|
||||||
|
if there is no thread, join will return
|
||||||
|
"""
|
||||||
|
|
||||||
|
# If there is no thread to join, just return
|
||||||
|
if self._recv_thread is None: return
|
||||||
|
else: self._recv_thread.join()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user