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

Struct OnFinishCallOption

rpc_util.go:393–395  ·  view source on GitHub ↗

OnFinishCallOption is CallOption that indicates a callback to be called when the call completes. # Experimental Notice: This type is EXPERIMENTAL and may be changed or removed in a later release.

Source from the content-addressed store, hash-verified

391// Notice: This type is EXPERIMENTAL and may be changed or removed in a
392// later release.
393type OnFinishCallOption struct {
394 OnFinish func(error)
395}
396
397func (o OnFinishCallOption) before(c *callInfo) error {
398 c.onFinish = append(c.onFinish, o.OnFinish)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected