Move set_return_value/set_data() into Task, where they're a bit more convenient.