Message 413370 - Python tracker (original) (raw)
Message413370
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:49 | gvanrossum | set | recipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino |
2022-02-17 00:30:49 | gvanrossum | set | messageid: 1645057849.1.0.373268367055.issue46771@roundup.psfhosted.org |
2022-02-17 00:30:49 | gvanrossum | link | issue46771 messages |
2022-02-17 00:30:48 | gvanrossum | create |