r"""Set task result and mark the task as DONE. Args: result (str): The task result.
(self, result: str)
| 121 | self.result = "" |
| 122 | |
| 123 | def update_result(self, result: str): |
| 124 | r"""Set task result and mark the task as DONE. |
| 125 | |
| 126 | Args: |
| 127 | result (str): The task result. |
| 128 | """ |
| 129 | self.result = result |
| 130 | self.set_state(TaskState.DONE) |
| 131 | |
| 132 | def set_id(self, id: str): |
| 133 | r"""Set the id of the task. |