aboutsummaryrefslogtreecommitdiff
path: root/docs/thread_safety.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/thread_safety.md')
-rw-r--r--docs/thread_safety.md10
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/thread_safety.md b/docs/thread_safety.md
index 485f74fa7..50bfad05b 100644
--- a/docs/thread_safety.md
+++ b/docs/thread_safety.md
@@ -8,7 +8,7 @@ The google-api-python-client library is built on top of the [httplib2](https://g
The easiest way to provide threads with their own `httplib2.Http()` instances is to either override the construction of it within the service object or to pass an instance via the http argument to method calls.
-```py
+```python
# Create a new Http() object for every request
def build_request(http, *args, **kwargs):
new_http = httplib2.Http()
@@ -19,10 +19,4 @@ service = build('api_name', 'api_version', requestBuilder=build_request)
service = build('api_name', 'api_version')
http = httplib2.Http()
service.stamps().list().execute(http=http)
-```
-
-## Credential Storage objects are thread-safe
-
-All [Storage](https://oauth2client.readthedocs.io/en/latest/source/oauth2client.client.html#oauth2client.client.Storage) objects defined in this library are thread-safe, and multiple processes and threads can operate on a single store.
-
-In some cases, this library automatically refreshes expired OAuth 2.0 tokens. When many threads are sharing the same set of credentials, the threads cooperate to minimize the total number of token refresh requests sent to the server.
+``` \ No newline at end of file