run method

void run()

Runs the effect function, tracking any signals or computeds read during execution.

Implementation

void run() {
  if (_isDisposed) return;

  _runCleanups();
  pushConsumer(this);
  clearDependencies();
  try {
    _fn?.call();
    _cleanupFn?.call(_registerCleanup);
  } finally {
    popConsumer();
  }
}