def METHOD_NAME(self, msg):
    msgview = memoryview(msg)
    req_id = _uint64_unpacker(msgview[:8])[0]
    waiter = self._resp_waiters.pop(req_id, None)
    if waiter is None:
        # This could have happened if the previous request got cancelled.
        return
    if not waiter.done():
        waiter.set_result(msgview[8:])