(reqId string, handler *RpcResponseHandler)
| 252 | } |
| 253 | |
| 254 | func (w *WshRpc) registerResponseHandler(reqId string, handler *RpcResponseHandler) { |
| 255 | w.Lock.Lock() |
| 256 | defer w.Lock.Unlock() |
| 257 | w.ResponseHandlerMap[reqId] = handler |
| 258 | } |
| 259 | |
| 260 | func (w *WshRpc) unregisterResponseHandler(reqId string) { |
| 261 | w.Lock.Lock() |
no outgoing calls
no test coverage detected