MCPcopy Create free account
hub / github.com/TanStack/db / getInstance

Method getInstance

packages/db/src/collection/cleanup-queue.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 private constructor() {}
18
19 public static getInstance(): CleanupQueue {
20 if (!CleanupQueue.instance) {
21 CleanupQueue.instance = new CleanupQueue()
22 }
23 return CleanupQueue.instance
24 }
25
26 /**
27 * Queues a cleanup task and defers timeout selection to a microtask so

Callers 4

startGCTimerMethod · 0.80
cancelGCTimerMethod · 0.80
performCleanupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected