set_result: Set task result
This is a method of the Task class in the task module.
def set_result(&mut self, output: TaskOutput) -> ()