(id: string, handle: BackendHandle)
| 683 | // not be clobbered. Returns true if the cached entry was the one |
| 684 | // we removed. |
| 685 | #invalidateHandle(id: string, handle: BackendHandle): boolean { |
| 686 | if (this.#handles.get(id) !== handle) return false; |
| 687 | this.#handles.delete(id); |
| 688 | this.#shells.delete(id); |
| 689 | return true; |
| 690 | } |
| 691 | |
| 692 | // Wrap an RPC-backed operation so a transport failure invalidates |
| 693 | // the cached handle before the error rethrows. Non-transport |
no test coverage detected