From a0cc27b43ef42490cd3476bf616d3160c4977eba Mon Sep 17 00:00:00 2001 From: Lasse Blaauwbroek Date: Mon, 3 Apr 2023 16:02:46 +0200 Subject: [PATCH] Remove poll_forever --- capnp/lib/capnp.pyx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/capnp/lib/capnp.pyx b/capnp/lib/capnp.pyx index 09cb0193..2d3901b9 100644 --- a/capnp/lib/capnp.pyx +++ b/capnp/lib/capnp.pyx @@ -2833,13 +2833,10 @@ cdef class TwoPartyServer: return poll_once() async def poll_forever(self): - """ + """Deprecated. Do not use. Poll libcapnp library forever (asyncio) """ - # TODO: Should probably be removed - while True: - poll_once() - await asyncio.sleep(0.01) + raise KjException("This functionality has been removed. Use `run_forever` instead.") cpdef run_forever(self): if self.port_promise is None: