File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ type ClientStream interface {
82
82
// stream.Recv has returned a non-nil error (including io.EOF).
83
83
Trailer () metadata.MD
84
84
// CloseSend closes the send direction of the stream. It closes the stream
85
- // when non-nil error is met.
85
+ // when non-nil error is met. It is also not safe to call CloseSend
86
+ // concurrently with SendMsg.
86
87
CloseSend () error
87
88
// Context returns the context for this stream.
88
89
//
@@ -105,7 +106,8 @@ type ClientStream interface {
105
106
//
106
107
// It is safe to have a goroutine calling SendMsg and another goroutine
107
108
// calling RecvMsg on the same stream at the same time, but it is not safe
108
- // to call SendMsg on the same stream in different goroutines.
109
+ // to call SendMsg on the same stream in different goroutines. It is also
110
+ // not safe to call CloseSend concurrently with SendMsg.
109
111
SendMsg (m interface {}) error
110
112
// RecvMsg blocks until it receives a message into m or the stream is
111
113
// done. It returns io.EOF when the stream completes successfully. On
You can’t perform that action at this time.
0 commit comments