![]() |
Home | Libraries | People | FAQ | More |
Constructs a connection pool.
connection_pool( pool_executor_params ex_params, pool_params params);
Internal I/O objects (like timers) are constructed using ex_params.pool_executor
. Connections are constructed
using ex_params.connection_executor
. This can be used
to create thread-safe pools.
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
).
Strong guarantee. Exceptions may be thrown by memory allocations.
Type |
Thrown On |
---|---|
|
If |