Skip to main content

Module pool

Module pool 

Source
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§

DrainSummary
Summary returned by Pool::drain.
Pool
A pool of Claude CLI slots.
PoolBuilder
Builder for constructing a Pool.
PoolStatus
Snapshot of pool status.