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

docs(bigquery): add client thread-safety documentation #132

Merged
merged 3 commits into from
Jun 15, 2020

Conversation

HemangChothani
Copy link
Contributor

Fixes #129

@HemangChothani HemangChothani requested a review from plamut June 11, 2020 11:56
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 11, 2020
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

Just two nits (disclaimer: I'm not a native speaker).

As for the thread safety, I scanned the Client code and it does not really have much state, except for a few internal properties and the project attribute. There is also the close() method, but that just operates on requests objects or their subclasses, e.g. google.auth.transport.AuthorizedSession.

Using a shared client is thus (probably) fine.

docs/index.rst Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

LGTM. Decide on your own if we need to change the spelling, since I'm not sure if my remark is indeed valid.

docs/index.rst Outdated Show resolved Hide resolved
@HemangChothani HemangChothani merged commit fce76b3 into googleapis:master Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQuery: Add docs regarding Client thread-safety
3 participants