This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients ajoino, alex.gronholm, asvetlov, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
Date 2022-02-17.00:30:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645057849.1.0.373268367055.issue46771@roundup.psfhosted.org>
In-reply-to
Content
@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.
History
Date User Action Args
2022-02-17 00:30:49gvanrossumsetrecipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino
2022-02-17 00:30:49gvanrossumsetmessageid: <1645057849.1.0.373268367055.issue46771@roundup.psfhosted.org>
2022-02-17 00:30:49gvanrossumlinkissue46771 messages
2022-02-17 00:30:48gvanrossumcreate