tracks/python/exercises/react/react.py in trackler-2.2.1.135 vs tracks/python/exercises/react/react.py in trackler-2.2.1.136

- old
+ new

@@ -1,17 +1,17 @@ -class Cell(object): - def set_value(value): - pass +class InputCell(object): + def __init__(self, initial_value): + self.value = None - def add_watcher(self, watcher_callback): - pass - def remove_watcher(self, watcher_callback): +class ComputeCell(object): + def __init__(self, inputs, compute_function): + self.value = None + + def add_callback(self, callback): pass - -class Reactor(object): - def create_input_cell(self, value): + def remove_callback(self, callback): pass - def create_compute_cell(self, dependencies, updater_callback): + def expect_callback_values(self, callback): pass