mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-05 17:01:01 +01:00
Delete yield_end function since yield was removed upstream
This commit is contained in:
parent
9678a0f5a7
commit
46049ecc36
3 changed files with 0 additions and 8 deletions
|
@ -42,9 +42,6 @@ cdef class EventLoop:
|
|||
Py_INCREF(error_func)
|
||||
return Promise()._init(async.there(self.thisptr, deref(promise.thisptr), <PyObject *>func, <PyObject *>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
|
||||
|
|
|
@ -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<PyObject *> yield_end(kj::EventLoop & loop) {
|
||||
return loop.there(loop.yield(), []() { Py_RETURN_NONE; } );
|
||||
}
|
||||
|
||||
// class PyEventLoop final: public ::kj::EventLoop {
|
||||
// public:
|
||||
// PyEventLoop() {}
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue