resolve(requestId) {
    this._pendingRequests[requestId]?.resolve();
    delete this._pendingRequests[requestId];
  }
Resolves the promise of a pending request that matches the given string
@param { string } requestId the requestId to resolve