pub fn with_thread_local_pools<F, R>(f: F) -> Rwhere
F: FnOnce(&TradingPoolManager) -> R,Expand description
Get thread-local trading pools for maximum performance
§Safety Note
This function uses the thread_local! macro to safely access thread-local pools.
The returned reference is valid for the lifetime of the closure where it’s used.
Each thread maintains its own independent instance of TradingPoolManager.