Skip to content

Commit

Permalink
Move group.next()
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 29, 2023
1 parent 86f99d8 commit ce95205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HummingbirdJobs/JobQueueHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public final class HBJobQueueHandler<Queue: HBJobQueue>: Service {
}
}
for try await job in self.queue {
try await group.next()
group.addTask {
try await self.runJob(job)
}
try await group.next()
}
group.cancelAll()
}
Expand Down

0 comments on commit ce95205

Please sign in to comment.