PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
JobQueue.hh File Reference

Implements the ECMAScript Job Queue. More...

#include <jsapi.h>
#include <js/Promise.h>
#include <Python.h>
Include dependency graph for JobQueue.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  JobQueue
 Implement the ECMAScript Job Queue: https://www.ecma-international.org/ecma-262/9.0/index.html#sec-jobs-and-job-queues. More...
 

Functions

bool sendJobToMainLoop (PyObject *pyFunc)
 Send job to the Python event-loop on main thread (Thread-Safe)
 

Detailed Description

Implements the ECMAScript Job Queue.

Author
Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work)
Date
2023-04-03

Function Documentation

◆ sendJobToMainLoop()

bool sendJobToMainLoop ( PyObject *  pyFunc)

Send job to the Python event-loop on main thread (Thread-Safe)

Parameters
pyFunc- the Python job function
Returns
success