client: doc that client is thread-safe

This commit is contained in:
Xiang Li
2016-03-29 09:28:53 -07:00
parent d533c14881
commit 9d49d35090
2 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ Create a Config and exchange it for a Client:
// handle error
}
Clients are safe for concurrent use by multiple goroutines.
Create a KeysAPI using the Client, then use it to interact with etcd:
kAPI := client.NewKeysAPI(c)