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

feat(client): impl Sync for Client #563

Merged
merged 1 commit into from
Jun 12, 2015
Merged

feat(client): impl Sync for Client #563

merged 1 commit into from
Jun 12, 2015

Conversation

seanmonstar
Copy link
Member

Connector::connect already used &self, and so would require
synchronization to be handled per connector anyway. Adding Sync to the
Client allows users to setup config for a Client once, such as using a
single connection Pool, and then making requests across multiple
threads.

Closes #254

BREAKING CHANGE: Connectors and Protocols passed to the Client must
now also have a Sync bounds, but this shouldn't break default usage.

Connector::connect already used &self, and so would require
synchronization to be handled per connector anyway. Adding Sync to the
Client allows users to setup config for a Client once, such as using a
single connection Pool, and then making requests across multiple
threads.

Closes #254

BREAKING CHANGE: Connectors and Protocols passed to the `Client` must
  now also have a `Sync` bounds, but this shouldn't break default usage.
seanmonstar added a commit that referenced this pull request Jun 12, 2015
feat(client): impl Sync for Client
@seanmonstar seanmonstar merged commit fe859ca into master Jun 12, 2015
@seanmonstar seanmonstar deleted the assert-sync branch June 12, 2015 18:59
@richard-uk1
Copy link
Contributor

:D

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