Struct for representing Promises.
More...
|
bool | PythonAwaitable_Check (PyObject *obj) |
| Check if the object can be used in Python await expression. PyAwaitable_Check hasn't been and has no plan to be added to the Python C API as of CPython 3.9.
|
|
Struct for representing Promises.
- Author
- Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work)
- Date
- 2023-03-29
- Copyright
- Copyright (c) 2023 Distributive Corp.
◆ PROMISE_OBJ_SLOT
#define PROMISE_OBJ_SLOT 1 |
◆ PY_FUTURE_OBJ_SLOT
#define PY_FUTURE_OBJ_SLOT 0 |
◆ PythonAwaitable_Check()
bool PythonAwaitable_Check |
( |
PyObject * |
obj | ) |
|
Check if the object can be used in Python await expression. PyAwaitable_Check
hasn't been and has no plan to be added to the Python C API as of CPython 3.9.