Check if a context has pending jobs.
(contextId: SchedulerContextId)
| 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 { |