Message352478
The EchoClientProtocol example receives a "loop" argument, which is not used at all in the TCP example, and is used to create a future in the UDP example. In modern asyncio code the explicit loop arguments are no longer used since the loop can always be obtained with get_running_loop().
The proposed patch makes the UDP example consistent with the TCP one (by having the constructor accept the on_con_lost future) and removes the loop argument from both. |
|
Date |
User |
Action |
Args |
2019-09-15 15:17:34 | hniksic | set | recipients:
+ hniksic, asvetlov, docs@python, yselivanov |
2019-09-15 15:17:34 | hniksic | set | messageid: <1568560654.11.0.446224617149.issue38178@roundup.psfhosted.org> |
2019-09-15 15:17:34 | hniksic | link | issue38178 messages |
2019-09-15 15:17:33 | hniksic | create | |
|