Skip to content

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

@aryansk 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

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