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

make pool.release return future #60

Merged
merged 2 commits into from Jan 20, 2016
Merged

make pool.release return future #60

merged 2 commits into from Jan 20, 2016

Conversation

jettify
Copy link
Member

@jettify jettify commented Jan 19, 2016

No description provided.

@asvetlov
Copy link
Member

LGTM

@methane
Copy link
Contributor

methane commented Jan 20, 2016

What is motivation to wait releasing connection?

@jettify
Copy link
Member Author

jettify commented Jan 20, 2016

Main reason, just to make sure we do not leave opened connections in background task, and all exception that happened there are raised in proper coroutine, otherwise in best case we will see exception in logs.

jettify added a commit that referenced this pull request Jan 20, 2016
@jettify jettify merged commit 91deaba into master Jan 20, 2016
@methane
Copy link
Contributor

methane commented Jan 21, 2016

Thanks for reply. I got it.

By the way, "This is NOT a coroutine." in docstring of release is misleading, since it returns awaitable now.

@jettify
Copy link
Member Author

jettify commented Jan 21, 2016

Thanks for pointing. Yes, unfortunately documentation is outdated, updating is what I going to work on next. My plan is to move all examples and docs to python3.5 syntax and add section on new apis. Then work on PyMySQL 0.7 compatibility.

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.

None yet

3 participants