Author chris.jerdonek
Recipients Ilya.Kulakov, asvetlov, chris.jerdonek, yselivanov
Date 2019-02-19.19:17:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A second reason why Task.cancel() seems to be an incomplete replacement:

Task.set_exception() and Task.set_result() both give you a way to unconditionally end a task. With cancel() though, the docs say, "Task.cancel() does not guarantee that the Task will be cancelled." [1]

The reason you might want to unconditionally end a task is if e.g. you already called Task.cancel() and it is still running after waiting a certain amount of time.

Date User Action Args
2019-02-19 19:17:56chris.jerdoneksetrecipients: + chris.jerdonek, asvetlov, yselivanov, Ilya.Kulakov
2019-02-19 19:17:56chris.jerdoneksetmessageid: <>
2019-02-19 19:17:56chris.jerdoneklinkissue32363 messages
2019-02-19 19:17:56chris.jerdonekcreate