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 @@ -86,7 +86,8 @@ type ClientStream interface {
86
86
// stream.Recv has returned a non-nil error (including io.EOF).
87
87
Trailer () metadata.MD
88
88
// CloseSend closes the send direction of the stream. It closes the stream
89
- // when non-nil error is met.
89
+ // when non-nil error is met. It is also not safe to call CloseSend
90
+ // concurrently with SendMsg.
90
91
CloseSend () error
91
92
// Context returns the context for this stream.
92
93
//
@@ -109,7 +110,8 @@ type ClientStream interface {
109
110
//
110
111
// It is safe to have a goroutine calling SendMsg and another goroutine
111
112
// calling RecvMsg on the same stream at the same time, but it is not safe
112
- // to call SendMsg on the same stream in different goroutines.
113
+ // to call SendMsg on the same stream in different goroutines. It is also
114
+ // not safe to call CloseSend concurrently with SendMsg.
113
115
SendMsg (m interface {}) error
114
116
// RecvMsg blocks until it receives a message into m or the stream is
115
117
// done. It returns io.EOF when the stream completes successfully. On
You can’t perform that action at this time.
0 commit comments