import { startBatch, endBatch } from "./alien.js";
import { flush } from "./atom.js";
function batch(fn) {
  try {
    startBatch();
    fn();
  } finally {
    endBatch();
    flush();
  }
}
export {
  batch
};//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/e0b7a2bcf575cfba10528c4e7c10bd3ce2d7769a/node_modules/@tanstack/store/dist/esm/batch.js.map
