def METHOD_NAME():
    for method, params in requests:
        rid = self._next_id
        self._next_id += 1
        q.put(rid)
        body = {
            "jsonrpc": "2.0",
            "id": rid,
            "method": method,
            "params": params,
        }
        self._send(body)
    # Sentinel value to indicate we are done
    q.put(None)