Guido van Rossum <gu...@python.org> added the comment:

@Tin The sad path is just a race, right? If the web server had disconnected 
just a tad later, __aexit__() would already have returned and await 
something_else() would already be running. So you can't make any promises if 
you write your code that way anyway.

@Alex For "happy eyeballs" you could also raise an exception or cancel the 
parent task once you've saved the winning result somewhere. Maybe you could 
show example code written using different paradigms so we can compare.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46771>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to