make comment on invoke/sendmsg more clear

This commit is contained in:
Xiang Li
2016-03-30 14:41:40 -07:00
parent 33966f5391
commit 11ef22ebfb
2 changed files with 5 additions and 3 deletions

View File

@ -67,7 +67,8 @@ type Stream interface {
// breaks.
// On error, it aborts the stream and returns an RPC status on client
// side. On server side, it simply returns the error to the caller.
// SendMsg is called by generated code.
// SendMsg is called by generated code. Also Users can call SendMsg
// directly when it is really needed in their use cases.
SendMsg(m interface{}) error
// RecvMsg blocks until it receives a message or the stream is
// done. On client side, it returns io.EOF when the stream is done. On