OnFinish returns a CallOption that configures a callback to be called when the call completes. The error passed to the callback is the status of the RPC, and may be nil. The onFinish callback provided will only be called once by gRPC. This is mainly used to be used by streaming interceptors, to be n
(onFinish func(err error))
| 378 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a |
| 379 | // later release. |
| 380 | func OnFinish(onFinish func(err error)) CallOption { |
| 381 | return OnFinishCallOption{ |
| 382 | OnFinish: onFinish, |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | // OnFinishCallOption is CallOption that indicates a callback to be called when |
| 387 | // the call completes. |
no outgoing calls
no test coverage detected