Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/SemanticIndex/TaskScheduler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ package actor TaskScheduler<TaskDescription: TaskDescriptionProtocol> {
/// After `shutDown` has been called, no more tasks will be executed on this `TaskScheduler`.
package func shutDown() async {
self.isShutDown = true
await self.currentlyExecutingTasks.concurrentForEach { task in
let allTasks = self.currentlyExecutingTasks + self.pendingTasks
await allTasks.concurrentForEach { task in
task.cancel()
do {
try await withTimeout(.seconds(10)) {
Expand Down