//! # Thread Error Collector
//!
//! This module provides a thread-safe helper to catch the first error encountered
//! during concurrent plugin execution, signaling other threads to terminate.
use ;
use crateRbatError;
/// Saves the first error that occurs to the shared Mutex and triggers the cancellation flag.
/// Subsequent errors are discarded to preserve the root cause error.