Open matthias-mayr opened 1 year ago
If this is merged, it should be mentioned here in the wiki as well.
Nothing against. I would take the chance to give a more clear naming: FailureIsSuccess, and SuccessIsFailure. Borrowed from pytree https://py-trees.readthedocs.io/en/devel/decorators.html . If you have spare time, you could consider to put in a base class to avoid repeat 70% of the code.
This decorator can be useful as part of a recovery process that should still produce a failure feedback to the parent.