All Classes Namespaces Functions Variables Typedefs Enumerations Friends
future.h
1 
5 #pragma once
6 
7 #include <Python.h>
8 
9 namespace ucxx {
10 
11 namespace python {
12 
24 [[nodiscard]] PyObject* create_python_future() noexcept;
25 
40 [[nodiscard]] PyObject* future_set_result(PyObject* future, PyObject* value) noexcept;
41 
56 [[nodiscard]] PyObject* future_set_exception(PyObject* future,
57  PyObject* exception,
58  const char* message) noexcept;
59 
73 [[nodiscard]] PyObject* create_python_future_with_event_loop(PyObject* event_loop) noexcept;
74 
91 [[nodiscard]] PyObject* future_set_result_with_event_loop(PyObject* event_loop,
92  PyObject* future,
93  PyObject* value) noexcept;
94 
111 [[nodiscard]] PyObject* future_set_exception_with_event_loop(PyObject* event_loop,
112  PyObject* future,
113  PyObject* exception,
114  const char* message) noexcept;
115 
116 } // namespace python
117 
118 } // namespace ucxx
Definition: address.h:15