Skip to content

Commit

Permalink
Remove stoppingToken in ExecuteTaskChunkAndWait
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Apr 12, 2024
1 parent 971118f commit e806137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Axuno.BackgroundTask/ConcurrentBackgroundQueueService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private async Task ExecuteTaskChunk(Queue<IBackgroundTask> taskListReference, Ca
taskChunk.Add(task);
}

await ExecuteTaskChunkAndWait(taskChunk, stoppingToken);
await ExecuteTaskChunkAndWait(taskChunk);
}
catch (Exception ex)
{
Expand All @@ -132,7 +132,7 @@ private async Task ExecuteTaskChunk(Queue<IBackgroundTask> taskListReference, Ca
}
}

private async Task ExecuteTaskChunkAndWait(List<Task> taskChunk, CancellationToken stoppingToken)
private async Task ExecuteTaskChunkAndWait(List<Task> taskChunk)
{
if (taskChunk.Count == 0)
return;
Expand Down

0 comments on commit e806137

Please sign in to comment.