Module: LlmCostTracker::Ingestion::Pool
- Defined in:
- lib/llm_cost_tracker/ingestion/pool.rb
Constant Summary collapse
- DEFAULT_POOL_SIZE =
2- MUTEX =
Mutex.new
Class Method Summary collapse
Class Method Details
.pool ⇒ Object
14 15 16 |
# File 'lib/llm_cost_tracker/ingestion/pool.rb', line 14 def pool @pool || MUTEX.synchronize { @pool ||= connect! } end |