Skip to content
Snippets Groups Projects
Commit e4b02581 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixed docs for CPManager

parent eeabd4b0
No related branches found
No related tags found
No related merge requests found
# v2.20.4
# v2.21.1
* removed the decorator syntax for transaction, it''s confusing and contrary to Zen of Python
* fixed some random bug-4444444-
\ No newline at end of file
* fixed some random bug
* fixed docs for CPManager
......@@ -26,6 +26,12 @@ class CPManager(Monitor, Closeable, tp.Generic[T], metaclass=abc.ABCMeta):
Note that you have to overload :meth:`~satella.coding.resources.CPManager.teardown_connection`
and :meth:`~satella.coding.resources.CPManager.create_connection`.
You obtain a connection by using :meth:`~satella.coding.resources.CPManager.acquire_connection`.
If it fails you should mark it as such using
:meth:`~satella.coding.resources.CPManager.fail_connection`.
In all cases you have to return it using
:meth:`~satella.coding.resources.CPManager.release_connection`.
:param max_number: maximum number of connections
:param max_cycle_no: maximum number of get/put connection cycles.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment