Delete yield_end function since yield was removed upstream
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user