as_task -> task_producer
Currently, every set_target_value
has to be of this form:
def set_target_value(self, value, hold=False):
def change():
self.pos = value # this is just an example
return self._as_task(change, hold=hold)
it would be preferable if the form could be simplified to:
def set_target_value(self, value):
self.pos = value # this is just an example
The method is then wrapped automatically such that it produces a Task
and accepts hold=bool
.