//! Shared Tokio runtime for async storage backends.
//!
//! Lazily initialises a process-global multi-threaded runtime so that
//! `HttpBackend` and `S3Backend` share one thread pool rather than each
//! creating their own.
use io;
use OnceLock;
use ;
static GLOBAL_RUNTIME: = new;
/// Returns a handle to the shared Tokio runtime, creating it on first call.
///
/// # Errors
///
/// Returns an I/O error if the Tokio runtime cannot be created (e.g. the OS
/// cannot spawn worker threads).