pub fn init() -> Result<(), Box<dyn Error + Send + Sync>>Expand description
Create the multi-threaded tokio runtime (with IO + time drivers) and store it in the process-wide sidecar. Idempotent: subsequent calls are no-ops, including calls that race a concurrent initializer.
Fails only if the OS refuses to spawn the worker threads, surfaced as an error instead of panicking so the daemon can abort startup cleanly.
§Errors
Returns the underlying std::io::Error boxed if tokio::runtime::Builder
cannot build the multi-threaded runtime (e.g. worker-thread spawn
failure). Never fails once the runtime is already initialized.