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

Method waitFor

packages/db/src/collection/index.ts:978–983  ·  view source on GitHub ↗

* Wait for a collection event

(
    event: T,
    timeout?: number,
  )

Source from the content-addressed store, hash-verified

976 * Wait for a collection event
977 */
978 public waitFor<T extends keyof AllCollectionEvents>(
979 event: T,
980 timeout?: number,
981 ) {
982 return this._events.waitFor(event, timeout)
983 }
984
985 /**
986 * Clean up the collection by stopping sync and clearing data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected