def add_request(self, amount_sat, message, expiry) -> str:
    coro = self._add_request_coro(amount_sat, message, expiry)
    fut = asyncio.run_coroutine_threadsafe(coro, self.network.asyncio_loop)
    try:
        return fut.result(timeout=5)
    except concurrent.futures.TimeoutError:
        raise Exception(_('add invoice timed out'))
def add_request(self, amount_sat, message, expiry) -> str:
    coro = self._add_request_coro(amount_sat, message, expiry)
    fut = asyncio.run_coroutine_threadsafe(coro, self.network.asyncio_loop)
    try:
        return fut.result(timeout=5)
    except concurrent.futures.TimeoutError:
        raise Exception(_('add invoice timed out'))