MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.99k stars 404 forks source link

Add Pool.is_closing() method #973

Closed singingwolfboy closed 1 year ago

singingwolfboy commented 2 years ago

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.

singingwolfboy commented 2 years ago

@elprans could I please get another review of this pull request?

singingwolfboy commented 2 years ago

The tests should pass now. Can you please enable them once again?

singingwolfboy commented 1 year ago

@elprans can this be merged?