PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
PromiseType.cc File Reference

Struct for representing Promises. More...

#include "include/modules/pythonmonkey/pythonmonkey.hh"
#include "include/PromiseType.hh"
#include "include/DictType.hh"
#include "include/PyEventLoop.hh"
#include "include/pyTypeFactory.hh"
#include "include/jsTypeFactory.hh"
#include <jsapi.h>
#include <jsfriendapi.h>
#include <js/Promise.h>
#include <Python.h>
#include "include/pyshim.hh"
Include dependency graph for PromiseType.cc:

Macros

#define PY_FUTURE_OBJ_SLOT   0
 
#define PROMISE_OBJ_SLOT   1
 

Functions

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.
 

Detailed Description

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

Macro Definition Documentation

◆ PROMISE_OBJ_SLOT

#define PROMISE_OBJ_SLOT   1

◆ PY_FUTURE_OBJ_SLOT

#define PY_FUTURE_OBJ_SLOT   0

Function Documentation

◆ 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.