@dark-engine/core
Version:
The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS, Windows, Linux, macOS)
15 lines (14 loc) • 412 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
exports.batch = void 0;
const scope_1 = require('../scope');
const scheduler_1 = require('../scheduler');
function batch(callback) {
const $scope = (0, scope_1.$$scope)();
$scope.setIsBatch(true);
callback();
$scope.setIsBatch(false);
scheduler_1.scheduler.batch();
}
exports.batch = batch;
//# sourceMappingURL=batch.js.map