MCPcopy Index your code
hub / github.com/leeoniya/uPlot / batch

Function batch

src/uPlot.js:2153–2162  ·  view source on GitHub ↗
(fn, _deferHooks = false)

Source from the content-addressed store, hash-verified

2151
2152 // manual batching (aka immediate mode), skips microtask queue
2153 function batch(fn, _deferHooks = false) {
2154 queuedCommit = true;
2155 deferHooks = _deferHooks;
2156
2157 fn(self);
2158 _commit();
2159
2160 if (_deferHooks && hooksQueue.length > 0)
2161 queueMicrotask(flushHooks);
2162 }
2163
2164 self.batch = batch;
2165

Callers

nothing calls this directly

Calls 1

_commitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…