|
|
@@ -99,15 +99,14 @@
|
|
|
//
|
|
|
// Concurrency
|
|
|
//
|
|
|
-// Connections do not support concurrent calls to the write methods (Send,
|
|
|
-// Flush) or concurrent calls to the read method (Receive). Connections do
|
|
|
-// allow a concurrent reader and writer.
|
|
|
-//
|
|
|
-// Because the Do method combines the functionality of Send, Flush and Receive,
|
|
|
-// the Do method cannot be called concurrently with the other methods.
|
|
|
-//
|
|
|
-// For full concurrent access to Redis, use the thread-safe Pool to get and
|
|
|
-// release connections from within a goroutine.
|
|
|
+// Connections support one concurrent caller to the Recieve method and one
|
|
|
+// concurrent caller to the Send and Flush methods. No other concurrency is
|
|
|
+// supported including concurrent calls to the Do method.
|
|
|
+//
|
|
|
+// For full concurrent access to Redis, use the thread-safe Pool to get, use
|
|
|
+// and release a connection from within a goroutine. Connections returned from
|
|
|
+// a Pool have the concurrency restrictions described in the previous
|
|
|
+// paragraph.
|
|
|
//
|
|
|
// Publish and Subscribe
|
|
|
//
|