MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / dispose

Function dispose

src/data/createDataStore.ts:308–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306 };
307
308 const dispose = (): void => {
309 if (disposed) return;
310 disposed = true;
311
312 for (const entry of series.values()) {
313 try {
314 entry.buffer.destroy();
315 } catch {
316 // Ignore destroy errors; disposal should be best-effort.
317 }
318 }
319 series.clear();
320 };
321
322 return {
323 setSeries,

Callers

nothing calls this directly

Calls 2

clearMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected