Update async a bit

This commit is contained in:
Jason Paryani
2013-09-18 17:19:06 -07:00
parent d4150227a7
commit a4cd266f58
2 changed files with 2 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ from cython.operator cimport dereference as deref
cdef extern from "<utility>" namespace "std":
async.PyPromise movePromise"std::move"(async.PyPromise)
# This is a really weird function. By making it public, we'll be able to call it from asyncHelper.h
# By making it public, we'll be able to call it from asyncHelper.h
cdef public object wrap_kj_exception(async.Exception & exception):
return None # TODO

View File

@@ -1,6 +1,6 @@
#include "kj/async.h"
#include "Python.h"
#include <iostream>
extern "C" {
PyObject * wrap_kj_exception(kj::Exception &);
}
@@ -8,7 +8,6 @@ extern "C" {
PyObject * wrapPyFunc(PyObject * func, PyObject * arg) {
PyObject * result = PyObject_CallFunctionObjArgs(func, arg, NULL);
Py_DECREF(func);
Py_DECREF(arg);
return result;
}