Skip to content

More concurrency #921

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

Merged

Conversation

ioquatix
Copy link
Contributor

Calling #close is no longer required, because the connection pool uses a transient task and automatically closes when going out of scope. This PR removes #close and also adds a top level scope around the generator, so that persistent connections can be reused between different parts of OctoFetcher.

@ioquatix
Copy link
Contributor Author

If someone has time to compare the perf, it could be interesting. I'm not sure it's a big win, it's more about the simplicity of the code.

Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this small change – with the Sync block – is way easier to follow ("Where does it end? Ah, at end!").

@olleolleolle olleolleolle merged commit 6d9cea6 into github-changelog-generator:master Dec 4, 2020
@ameir ameir mentioned this pull request Feb 18, 2021
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.

2 participants