use mpsc;
use CancellationToken;
use AppResult;
use crateEvent;
/// Core trait for worker task handlers.
///
/// Implementors receive a task `I`, an event sender for streaming intermediate results,
/// and a cancellation token for cooperative cancellation.