mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-11-13 14:25:13 +03:00
This prevents us from locking forever on any task that doesn't rely on cancellation tokens, in this case, Connection.recv()'s _recv_queue.get() would never complete after the server closed the connection. Additionally, working with cancellation tokens in asyncio is somewhat annoying to do. Last but not least removing the Connection._disconnected future avoids the need to use its state (if an exception was set it should be retrieved) to prevent asyncio from complaining, which it was before. |
||
|---|---|---|
| .. | ||
| client | ||
| crypto | ||
| errors | ||
| events | ||
| extensions | ||
| network | ||
| sessions | ||
| tl | ||
| __init__.py | ||
| default.py | ||
| full_sync.py | ||
| helpers.py | ||
| sync.py | ||
| utils.py | ||
| version.py | ||