diff --git a/uvloop/loop.pyx b/uvloop/loop.pyx index f9a5a239..341afd5d 100644 --- a/uvloop/loop.pyx +++ b/uvloop/loop.pyx @@ -2460,7 +2460,7 @@ cdef class Loop: def remove_reader(self, fileobj): """Remove a reader callback.""" - self._remove_reader(fileobj) + return self._remove_reader(fileobj) def add_writer(self, fileobj, callback, *args): """Add a writer callback..""" @@ -2470,7 +2470,7 @@ cdef class Loop: def remove_writer(self, fileobj): """Remove a writer callback.""" - self._remove_writer(fileobj) + return self._remove_writer(fileobj) @cython.iterable_coroutine async def sock_recv(self, sock, n):