First working version of capability interfaces
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user