package tools
// parallelResult is the common interface for birda/raven worker results.
string
ClusteredCall
bool
bool
error
}
// aggregateStats holds the collected results from a parallel fan-out/fan-in.
// aggregateResults collects results from a channel of parallelResult values,
// handling error tracking, species counting, optional file deletion, and
// progress reporting. Returns the aggregated stats.
,
) aggregateStats
// maybeDeleteFile deletes the source file if requested and it was successfully processed.
// sortCallsByFileAndTime sorts calls by filename, then start time.