diff --git a/capnp/async.pyx b/capnp/async.pyx index 89eb15d..79f6104 100644 --- a/capnp/async.pyx +++ b/capnp/async.pyx @@ -42,9 +42,6 @@ cdef class EventLoop: Py_INCREF(error_func) return Promise()._init(async.there(self.thisptr, deref(promise.thisptr), func, error_func)) - cpdef yield_end(self): - return Promise()._init(async.yield_end(self.thisptr)) - cdef class Promise: cdef async.PyPromise * thisptr cdef public bint is_consumed diff --git a/capnp/asyncHelper.h b/capnp/asyncHelper.h index ae115cf..7dca4f3 100644 --- a/capnp/asyncHelper.h +++ b/capnp/asyncHelper.h @@ -33,10 +33,6 @@ PyObject * wrapPyFunc(PyObject * func, PyObject * arg) { , [error_func](kj::Exception arg) { return wrapPyFunc(error_func, wrap_kj_exception(arg)); } ); } -::kj::Promise yield_end(kj::EventLoop & loop) { - return loop.there(loop.yield(), []() { Py_RETURN_NONE; } ); -} - // class PyEventLoop final: public ::kj::EventLoop { // public: // PyEventLoop() {} diff --git a/capnp/async_cpp.pxd b/capnp/async_cpp.pxd index d26f489..911378d 100644 --- a/capnp/async_cpp.pxd +++ b/capnp/async_cpp.pxd @@ -30,7 +30,6 @@ cdef extern from "asyncHelper.h": PyPromise evalLater(EventLoop &, PyObject * func) PyPromise there(EventLoop & loop, PyPromise & promise, PyObject * func, PyObject * error_func) PyPromise then(PyPromise & promise, PyObject * func, PyObject * error_func) - PyPromise yield_end(EventLoop & loop) # cdef cppclass PyEventLoop(EventLoop): # pass \ No newline at end of file