Module shared_runtime

Module shared_runtime 

Source
Expand description

Shared Tokio runtime for the entire application

This module provides a single shared runtime instance to avoid the anti-pattern of creating multiple runtimes.

Structs§

RuntimeConfig
Configuration for the shared runtime

Functions§

initialize_runtime
Initialize the shared runtime with custom configuration
shared_runtime
Get or create the shared runtime instance