···7272 Builder(crew.max_queue_length(builder, max_queue_length))
7373}
74747575-/// The `max_overflow_reductions` setting controls how many work items a single
7676-/// request can submit before being deprioritised and being moved back to the
7777-/// end of the queue.
7878-///
7979-/// This allows other requests to have a chance at getting completed,
8080-/// distributing the load and making the entire system better behaved.
8181-/// By default, `max_overflow_reductions` is equal to the queue length.
8282-///
8383-/// ## Example
8484-///
8585-/// ```gleam
8686-/// task_pool.new(pool_name)
8787-/// |> task_pool.max_overflow_reductions(100)
8888-/// ```
8989-pub fn max_overflow_reductions(
9090- builder: Builder,
9191- max_overflow_reductions: Int,
9292-) -> Builder {
9393- let Builder(builder) = builder
9494- Builder(crew.max_overflow_reductions(builder, max_overflow_reductions))
9595-}
9696-9775/// Start an unsupervised worker pool from the given builder.
9876///
9977/// Returns a supervisor that manages the pool and its workers. In most cases,