Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implement get_conn as a plain async fn #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

espindola
Copy link
Contributor

Avoiding the manual implementation of Future makes this code quite a
bit simpler IMHO.

This makes the future implementation private. This is a braking
change, but:

* It is unlikely anyone was using GetConn directly instead of just
  awaiting it.

* This opens the way for replacing the manual implementation with an
  async fn.
Avoiding the manual implementation of Future makes this code quite a
bit simpler IMHO.
@espindola espindola mentioned this pull request Jan 10, 2024
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.

1 participant