// Copyright 2026-Present Datadog, Inc. https://www.datadoghq.com/
// SPDX-License-Identifier: Apache-2.0
//! A shared tokio runtime for running background workers across multiple components.
//!
//! This crate provides [`SharedRuntime`], which owns a single tokio runtime and manages
//! [`PausableWorker`]s on it. Components such as the trace exporter can share one runtime
//! instead of each creating their own, reducing thread and resource overhead.
//!
//! [`SharedRuntime`] also provides fork-safety hooks (`before_fork`, `after_fork_parent`,
//! `after_fork_child`) that pause and restart workers around `fork()` calls, preventing
//! deadlocks in child processes.
// Top-level re-exports for convenience
pub use ;
pub use Worker;