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, chris.jerdonek, dreamsorcerer, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
Date 2022-02-23.17:03:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645635799.54.0.742459391532.issue46771@roundup.psfhosted.org>
In-reply-to
Content
To make this cleanly interact with timeout, TaskGroup etc., the CancelOnEvent class should have a "did-I-cancel" flag which is set in the _cancel_on_event() callback. Then if that flag is set it should call .uncancel(), and if that returns a value > 0, it should bubble the CancelledError out; otherwise it can raise EventRaised (if the condition is set).
History
Date User Action Args
2022-02-23 17:03:19gvanrossumsetrecipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, chris.jerdonek, yselivanov, tinchester, iritkatriel, dreamsorcerer, ajoino
2022-02-23 17:03:19gvanrossumsetmessageid: <1645635799.54.0.742459391532.issue46771@roundup.psfhosted.org>
2022-02-23 17:03:19gvanrossumlinkissue46771 messages
2022-02-23 17:03:19gvanrossumcreate