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

Function cleanup

packages/electric-db-collection/src/electric.ts:716–720  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

714
715 return new Promise((resolve, reject) => {
716 const cleanup = () => {
717 clearTimeout(timeoutId)
718 subSeenTxids.unsubscribe()
719 subSeenSnapshots.unsubscribe()
720 }
721
722 const timeoutId = setTimeout(() => {
723 cleanup()

Callers 1

awaitTxIdFunction · 0.70

Calls 1

unsubscribeMethod · 0.45

Tested by

no test coverage detected