Telethon/telethon
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
..
client Handle empty code when starting 2018-10-21 16:05:31 +02:00
crypto Use new broken MessagePacker 2018-10-19 13:24:52 +02:00
errors Show the request that caused RPC errors in their messages 2018-10-15 18:35:51 +02:00
events Fix several broken links in the docs 2018-10-17 11:50:11 +02:00
extensions Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00
network Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00
sessions Fix sqlite's conn may be None if never used 2018-09-04 11:28:01 +02:00
tl Fix several broken links in the docs 2018-10-17 11:50:11 +02:00
__init__.py Add full_sync module (#1016) 2018-10-05 19:59:56 +02:00
default.py Create a default module to use as a sentinel value 2018-10-05 14:20:50 +02:00
full_sync.py Patch __enter__/__exit__ specially in full_sync 2018-10-19 18:04:53 +02:00
helpers.py Use new broken MessagePacker 2018-10-19 13:24:52 +02:00
sync.py Work around importing sync and using full_sync 2018-10-08 11:13:24 +02:00
utils.py Update documentation with new sections 2018-10-06 20:20:11 +02:00
version.py Update to v1.3 2018-09-22 19:37:16 +02:00