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.

作者 gvanrossum
收信人 ajoino, alex.gronholm, asvetlov, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
日期 2022-02-17.00:30:48
SpamBayes Score -1.0
Marked as misclassified
Message-id <1645057849.1.0.373268367055.issue46771@roundup.psfhosted.org>
In-reply-to
内容
@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.
历史
日期 用户 动作 参数
2022-02-17 00:30:49gvanrossum修改recipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino
2022-02-17 00:30:49gvanrossum修改messageid: <1645057849.1.0.373268367055.issue46771@roundup.psfhosted.org>
2022-02-17 00:30:49gvanrossum链接issue46771 messages
2022-02-17 00:30:48gvanrossum创建