Fix xlog docs
[folly.git] / folly / python / futures.pxd
1 from cpython.ref cimport PyObject
2 from folly cimport cFollyTry, cFollyFuture, cFollyExecutor
3
4 cdef extern from "folly/python/futures.h" namespace "folly::python":
5     void bridgeFuture[T](
6         cFollyFuture[T]&& fut,
7         void(*)(cFollyTry[T]&&, PyObject*),
8         PyObject* pyFuture
9     )
10     # No clue but cython overloading is getting confused so we alias
11     void bridgeFutureWith "folly::python::bridgeFuture"[T](
12         cFollyExecutor* executor,
13         cFollyFuture[T]&& fut,
14         void(*)(cFollyTry[T]&&, PyObject*),
15         PyObject* pyFuture
16     )