context fix

This commit is contained in:
nquidox 2026-02-28 10:53:02 +03:00
parent 4665c90c2c
commit c955615fb1
8 changed files with 39 additions and 52 deletions

View file

@ -1,10 +1,11 @@
package parsers
import (
"context"
"task-processor/internal/appState"
"task-processor/internal/shared"
)
type TaskHandler interface {
HandleTasks(tasks []shared.Task, sender chan shared.TaskResult, state *appState.State)
HandleTasks(ctx context.Context, tasks []shared.Task, sender chan shared.TaskResult, state *appState.State)
}