First working version of capability interfaces

This commit is contained in:
Jason Paryani
2013-10-15 22:36:14 -07:00
parent 9391ed6759
commit a5d0abb49f
12 changed files with 576 additions and 140 deletions

View File

@@ -10,6 +10,7 @@ cdef extern from "kj/exception.h" namespace " ::kj":
cdef extern from "kj/async.h" namespace " ::kj":
cdef cppclass Promise[T]:
Promise()
Promise(Promise)
T wait()
@@ -24,12 +25,4 @@ cdef extern from "kj/async.h" namespace " ::kj":
PyPromise evalLater(PyObject * func)
PyPromise there(PyPromise, PyObject * func)
cdef cppclass SimpleEventLoop(EventLoop):
pass
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)
# cdef cppclass PyEventLoop(EventLoop):
# pass
pass