Skip to content

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

Merged
HemangChothani merged 3 commits intogoogleapis:masterfrom
MaxxleLLC:bigquery_issue_129
Jun 15, 2020
Merged

docs(bigquery): add client thread-safety documentation#132
HemangChothani merged 3 commits intogoogleapis:masterfrom
MaxxleLLC:bigquery_issue_129

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.

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.

@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