updateComputations1to2 function

void updateComputations1to2(
  1. int n,
  2. List<Signal<int>> sources,
  3. ReactiveFramework framework
)

Implementation

void updateComputations1to2(
  int n,
  List<Signal<int>> sources,
  ReactiveFramework framework,
) {
  int Function() get1 = sources[0].read;
  void Function(int) set1 = sources[0].write;
  framework.computed(() => get1());
  framework.computed(() => get1());
  for (var i = 0; i < n ~/ 2; i++) {
    set1(i);
  }
}