FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clarify pooled connection lifetime by aryansk · Pull Request #1347 · MagicStack/asyncpg · GitHub

Clarify pooled connection lifetime - #1347

Draft
aryansk wants to merge 1 commit into
MagicStack:masterfrom
aryansk:docs/1316-pool-acquire-lifetime
Draft

Clarify pooled connection lifetime#1347
aryansk wants to merge 1 commit into
MagicStack:masterfrom
aryansk:docs/1316-pool-acquire-lifetime

Conversation

aryansk commented Aug 16, 2026

Copy link
Copy Markdown

Summary

Clarify the connection-pool usage guide for readers who are new to async context managers.

Changes

  • state explicitly that leaving async with pool.acquire() releases the borrowed connection back to the pool
  • clarify that callers should not explicitly close that borrowed connection

Fixes #1316

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suggestion

1 participant


Back | FazBrowse Home | New Git URL