We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a78bc5e + ba1fb5d commit be5ae8cCopy full SHA for be5ae8c
Sources/SemanticIndex/TaskScheduler.swift
@@ -521,6 +521,9 @@ package actor TaskScheduler<TaskDescription: TaskDescriptionProtocol> {
521
///
522
/// This will continue calling itself until the queue is empty.
523
private func poke() {
524
+ if isShutDown {
525
+ return
526
+ }
527
pendingTasks.sort(by: { $0.priority > $1.priority })
528
for task in pendingTasks {
529
guard
0 commit comments