Fix up examples
This commit is contained in:
@@ -61,6 +61,7 @@ void check_py_error() {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: need to decref error_func as well on successful run
|
||||
PyObject * wrapPyFunc(PyObject * func, PyObject * arg) {
|
||||
PyObject * result = PyObject_CallFunctionObjArgs(func, arg, NULL);
|
||||
Py_DECREF(func);
|
||||
|
||||
@@ -1581,6 +1581,10 @@ cdef class RpcServer:
|
||||
def __dealloc__(self):
|
||||
del self.thisptr
|
||||
|
||||
def run_forever(self):
|
||||
p = PromiseFulfillerPair()
|
||||
self.loop.wait(p)
|
||||
|
||||
# TODO: add restore functionality here?
|
||||
|
||||
cdef class FdAsyncIoStream:
|
||||
|
||||
Reference in New Issue
Block a user