diff options
author | Dana Powers <dana.powers@rd.io> | 2015-06-08 17:25:45 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2015-06-08 18:59:23 -0700 |
commit | 0dc6663d24f6b9386ac2119a4a11836391e5da65 (patch) | |
tree | 47a2fa30bfa32a4714c74afa2989944bcb86e56a /kafka/client.py | |
parent | c0fb0de7c4ced45dae4e09cdc660ebc741e11af3 (diff) | |
download | kafka-python-0dc6663d24f6b9386ac2119a4a11836391e5da65.tar.gz |
Add a few extra docstring comments about thread-safe clients/connections
Diffstat (limited to 'kafka/client.py')
-rw-r--r-- | kafka/client.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kafka/client.py b/kafka/client.py index 63c9073..20e20f2 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -254,8 +254,11 @@ class KafkaClient(object): def copy(self): """ - Create an inactive copy of the client object - A reinit() has to be done on the copy before it can be used again + Create an inactive copy of the client object, suitable for passing + to a separate thread. + + Note that the copied connections are not initialized, so reinit() must + be called on the returned copy. """ c = copy.deepcopy(self) for key in c.conns: |