Expand description
Core pool engine for managing Claude CLI slots.
The Pool struct is the main entry point. It manages slot lifecycle,
task assignment, budget tracking, and shared context.
§Example
use claude_pool::{Pool, PoolConfig};
let claude = claude_wrapper::Claude::builder().build()?;
let pool = Pool::builder(claude)
.slots(4)
.build()
.await?;
let result = pool.run("write a haiku about rust").await?;
println!("{}", result.output);
pool.drain().await?;Structs§
- Drain
Summary - Summary returned by
Pool::drain. - Pool
- A pool of Claude CLI slots.
- Pool
Builder - Builder for constructing a
Pool. - Pool
Status - Snapshot of pool status.