![]() |
Home | Libraries | People | FAQ | More |
Constructs a connection pool.
template< class ExecutionContext> connection_pool( ExecutionContext& ctx, pool_params params);
Both internal I/O objects and connections are constructed using ctx.get_executor().
The pool is created in a "not-running" state. Call async_run to transition to the
"running" state. Calling async_get_connection in the
"not-running" state will fail with client_errc::cancelled.
The constructed pool is always valid (this->valid() == true).
This function participates in overload resolution only if ExecutionContext satisfies the ExecutionContext requirements imposed
by Boost.Asio.
Strong guarantee. Exceptions may be thrown by memory allocations.
|
Type |
Thrown On |
|---|---|
|
|
If |