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

Connection::when_ready Future #173

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Connection::when_ready Future #173

merged 2 commits into from
Oct 9, 2024

Conversation

alexrudy
Copy link
Owner

@alexrudy alexrudy commented Oct 8, 2024

Named future for the when-ready method which skips the use of the poll_fn combinator (which becomes un-nameable because of the closure) and replaces it with an explicit struct that impls Future.

Applied to both the trait, and the PooledConnection type generically (the latter for use in the client service)

Explicit future type makes implementing executors easier, but is an indepently useful change.
Named future for the when-ready method which skips the use of the `poll_fn` combinator (which becomes un-nameable because of the closure) and replaces it with an explicit struct that impls Future.
@alexrudy alexrudy force-pushed the refactor/when-ready-future branch from 243bbcc to 689df9e Compare October 9, 2024 01:09
@alexrudy alexrudy merged commit 658a032 into main Oct 9, 2024
12 checks passed
@alexrudy alexrudy deleted the refactor/when-ready-future branch October 9, 2024 15:00
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