futures.pxd 568 B

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