Repository navigation
Rename task cancel to request_stop - #514
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Notw that with the Ewoks task does is a "cooperative abort" which I would call neither In terms of API I propose: |
|
Indeed |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Loïc Huder <42204205+loichuder@users.noreply.github.com>
Co-authored-by: Loïc Huder <42204205+loichuder@users.noreply.github.com>
Co-authored-by: Loïc Huder <42204205+loichuder@users.noreply.github.com>
…Task.cancelled' to 'Task.stop_requested'. Note: Task._cancelled renamed Task._stop_requested without deprecation (protected)
2333a4b to
d618db3
Compare
|
Note that I made an assumption when proposing the names because I do not know what the original There are two possibilities for the boolean: either the stop is requested or it stopped. I assumed the first meaning although the word "cancelled" seems to suggest the second. |
…ted`. Users that wants to implement a specific behavior when stopping are expected to implement `on_stop_requested`.
250160f to
c83cbef
Compare
0900d3f to
e447aa6
Compare
| [project] | ||
| name = "ewokscore" | ||
| version = "5.1.0rc4" | ||
| version = "5.1.0rc5" |
There was a problem hiding this comment.
Will do the rc to get CI aligned with ewoksorange
PR summary
This PR deprecate
Taskcancelfunction to the benefit ofrequest_stopwhich is semantically more correct.AI Disclosure