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/def9583aef9852ff94cb0dea16ede9bb6b095b30/node_modules/@tanstack/store/dist/esm/batch.js.map
