Message413820
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). |
|
Date |
User |
Action |
Args |
2022-02-23 17:03:19 | gvanrossum | set | recipients:
+ gvanrossum, njs, jab, asvetlov, alex.gronholm, chris.jerdonek, yselivanov, tinchester, iritkatriel, dreamsorcerer, ajoino |
2022-02-23 17:03:19 | gvanrossum | set | messageid: <1645635799.54.0.742459391532.issue46771@roundup.psfhosted.org> |
2022-02-23 17:03:19 | gvanrossum | link | issue46771 messages |
2022-02-23 17:03:19 | gvanrossum | create | |
|