MCPcopy
hub / github.com/grpc/grpc-go / OnFinish

Function OnFinish

rpc_util.go:380–384  ·  view source on GitHub ↗

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))

Source from the content-addressed store, hash-verified

378// Notice: This API is EXPERIMENTAL and may be changed or removed in a
379// later release.
380func 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.

Callers 4

streamInterceptorMethod · 0.92
streamInterceptorMethod · 0.92
streamInterceptorMethod · 0.92
newClientStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected