katipo_pool (katipo v2.0.0-rc.2)
View SourceManages pools of katipo HTTP client workers.
Summary
Functions
Equivalent to start/3.
Starts a named pool of katipo workers with the given size and options: the
curl multi options plus {max_in_flight, N | infinity} (default
infinity), a per-worker cap on concurrently in-flight requests. When
every worker is at its cap, requests fail fast with
{error, #{code => overload}} instead of accumulating without bound.
Stops a named pool.
Types
-type name() :: atom().
Functions
-spec start(name(), pos_integer()) -> supervisor:startchild_ret().
Equivalent to start/3.
-spec start(name(), pos_integer(), katipo:pool_opts()) -> supervisor:startchild_ret() | {error, map()}.
Starts a named pool of katipo workers with the given size and options: the
curl multi options plus {max_in_flight, N | infinity} (default
infinity), a per-worker cap on concurrently in-flight requests. When
every worker is at its cap, requests fail fast with
{error, #{code => overload}} instead of accumulating without bound.
-spec stop(name()) -> ok.
Stops a named pool.