Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
connection_pool::connection_pool (1 of 3 overloads)

Constructs a connection pool.

Synopsis
connection_pool(
    asio::any_io_executor ex,
    pool_params params);
Description

The pool is created in a "not-running" state. Call async_run to transition to the "running" state.

The constructed pool is always valid (this->valid() == true).

Executor

The passed executor becomes the pool executor, available through get_executor. ex is used as follows:

Exception safety

Strong guarantee. Exceptions may be thrown by memory allocations.

Exceptions

Type

Thrown On

std::invalid_argument

If params contains values that violate the rules described in pool_params.


PrevUpHomeNext