]> git.ipfire.org Git - thirdparty/psycopg.git/commit
refactor(pool): give sync attribute the same life cycle of the async one
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 5 Oct 2023 00:43:50 +0000 (02:43 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 11 Oct 2023 21:45:39 +0000 (23:45 +0200)
commit20e2d02a17d95ebe4f0d26d842c2e6ee288c6c7e
tree73d0e5132116b9387fb626d8e171daac4c78a82c
parent33176645b7f1635adc1a27f01de85f2c9cea1af2
refactor(pool): give sync attribute the same life cycle of the async one

Create possibly async objects only after we are sure that a loop is
running.
psycopg_pool/psycopg_pool/pool.py
psycopg_pool/psycopg_pool/pool_async.py