Skip to content

Commit

Permalink
Remove poll_forever
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseBlaauwbroek committed Apr 3, 2023
1 parent 64e9141 commit a0cc27b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions capnp/lib/capnp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a0cc27b

Please sign in to comment.