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

Method hasPendingJobs

packages/db/src/scheduler.ts:201–204  ·  view source on GitHub ↗

Check if a context has pending jobs.

(contextId: SchedulerContextId)

Source from the content-addressed store, hash-verified

199
200 /** Check if a context has pending jobs. */
201 hasPendingJobs(contextId: SchedulerContextId): boolean {
202 const context = this.contexts.get(contextId)
203 return !!context && context.jobs.size > 0
204 }
205
206 /** Remove a single job from a context and clean up its dependencies. */
207 clearJob(contextId: SchedulerContextId, jobId: unknown): void {

Callers 1

scheduler.test.tsFile · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected