Commit f151081c authored by augustin_s's avatar augustin_s 🐍
Browse files

changed set_target_value to TaskProducer logic

parent cf4009d4
......@@ -15,11 +15,9 @@ class DummyAdjustable(Adjustable):
value += round(random(), 1)
return value
def set_target_value(self, value, hold=False):
def change():
self._current_value = value
print(repr(self))
return self._as_task(change, hold=hold)
def set_target_value(self, value):
self._current_value = value
print(repr(self))
def is_moving(self):
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment