Message305770
> Just try the snippet :-) If you want to see it finish in a finite time, move the future instantiation inside the coroutine.
Yeah, I see the problem. OTOH your proposed change to lazily attach a loop to the future isn't fully backwards compatible. It would be a nightmare to find a bug in a large codebase caused by this change in Future behaviour. So I'm -1 on this idea, that ship has sailed.
> Unfortunately that's not possible in our case. Short version: we are using Tornado which creates a asyncio Future eagerly, see https://github.com/tornadoweb/tornado/blob/master/tornado/locks.py#L199
Maybe the solution is to fix Tornado? |
|
Date |
User |
Action |
Args |
2017-11-07 15:57:35 | yselivanov | set | recipients:
+ yselivanov, gvanrossum, pitrou, giampaolo.rodola |
2017-11-07 15:57:35 | yselivanov | set | messageid: <1510070255.89.0.213398074469.issue31960@psf.upfronthosting.co.za> |
2017-11-07 15:57:35 | yselivanov | link | issue31960 messages |
2017-11-07 15:57:35 | yselivanov | create | |
|