MCPcopy Create free account
hub / github.com/apache/dubbo-go / SetInvoker

Method SetInvoker

protocol/invocation/rpcinvocation.go:161–165  ·  view source on GitHub ↗

SetInvoker sets the invoker in current context (thread-safe).

(invoker base.Invoker)

Source from the content-addressed store, hash-verified

159
160// SetInvoker sets the invoker in current context (thread-safe).
161func (r *RPCInvocation) SetInvoker(invoker base.Invoker) {
162 r.lock.Lock()
163 defer r.lock.Unlock()
164 r.invoker = invoker
165}
166
167// CallBack sets RPC callback method.
168func (r *RPCInvocation) CallBack() any {

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80