| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| await asyncio.gather(*connect_tasks) | ||
|
|
||
| @property | ||
| def closed(self): |
There was a problem hiding this comment.
Let's make it a method called is_closing() and take into account the _closing property too. This would make Pool consistent with the asyncio transport API.
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed!
Sorry, something went wrong.
|
@elprans could I please get another review of this pull request? |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good. Thanks!
Sorry, something went wrong.
|
The tests should pass now. Can you please enable them once again? |
Sorry, something went wrong.
|
@elprans can this be merged? |
Sorry, something went wrong.
Minor fixes and improvements. Changes ======= * Do not try to cleanup statements (#981) (by @fvannee in d2e710f for #981) * Add Pool.is_closing() method (#973) (by @singingwolfboy in 9cb2c1c for #973) * Fix test_tls_version for LibreSSL (#974) (by @CyberTailor in 7df9812 for #974) * Handle environments without home dir (#1011) (by @LeonardBesson in 172b8f6 for #1011) * fix: salt and iterations parsing for scram (#1026) (by @trigonometr in 7443a9e for #1026) * Add support for target_session_attrs (#987) (by @JesseDeLoore in bf74e88 for #987) * Add support for READ UNCOMMITTED (#1039) (by @benwah in 2f20bae for #1039) * Update benchmarks, add psycopg3 (#1042) (by @elprans in 7d4fcf0 for #1042)
Minor fixes and improvements. Changes ======= * Do not try to cleanup statements (#981) (by @fvannee in d2e710f for #981) * Add Pool.is_closing() method (#973) (by @singingwolfboy in 9cb2c1c for #973) * Fix test_tls_version for LibreSSL (#974) (by @CyberTailor in 7df9812 for #974) * Handle environments without home dir (#1011) (by @LeonardBesson in 172b8f6 for #1011) * fix: salt and iterations parsing for scram (#1026) (by @trigonometr in 7443a9e for #1026) * Add support for target_session_attrs (#987) (by @JesseDeLoore in bf74e88 for #987) * Add support for READ UNCOMMITTED (#1039) (by @benwah in 2f20bae for #1039) * Update benchmarks, add psycopg3 (#1042) (by @elprans in 7d4fcf0 for #1042)
| Back | FazBrowse Home | New Git URL |
Sometimes, application code wants to check if a Pool is still open or not. This adds an is_closing() method to the public API for Pool, so that it's easy to do so.