SetInvoker sets the invoker in current context (thread-safe).
(invoker base.Invoker)
| 159 | |
| 160 | // SetInvoker sets the invoker in current context (thread-safe). |
| 161 | func (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. |
| 168 | func (r *RPCInvocation) CallBack() any { |