slic issueshttps://gitlab.psi.ch/slic/slic/-/issues2022-01-12T12:27:09+01:00https://gitlab.psi.ch/slic/slic/-/issues/4as_task -> task_producer2022-01-12T12:27:09+01:00augustin_sas_task -> task_producerCurrently, every `set_target_value` has to be of this form:
```python
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)
```
i...Currently, every `set_target_value` has to be of this form:
```python
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:
```python
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`.