Telethon/telethon/extensions
Lonami Exo 7dece209a0 Cancel tasks on reconnect instead of awaiting them
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.
2018-10-21 16:20:05 +02:00
..
__init__.py Delete TcpClient 2018-10-05 13:26:44 +02:00
binaryreader.py Set timezone info when reading datetimes 2018-07-12 00:30:57 +02:00
html.py Add name mention formatting to HTML and Markdown (#1019) 2018-10-04 15:56:32 +02:00
markdown.py Add name mention formatting to HTML and Markdown (#1019) 2018-10-04 15:56:32 +02:00
messagepacker.py Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00