#include <PyEventLoop.hh>
|
| static PyEventLoop | getRunningLoop () |
| | Get the running Python event-loop on the current thread, or raise a Python RuntimeError if no event-loop running.
|
| |
| static PyEventLoop | getMainLoop () |
| | Get the running Python event-loop on main thread, or raise a Python RuntimeError if no event-loop running.
|
| |
◆ ~PyEventLoop()
| PyEventLoop::~PyEventLoop |
( |
| ) |
|
◆ PyEventLoop() [1/2]
| PyEventLoop::PyEventLoop |
( |
| ) |
|
|
protecteddelete |
◆ PyEventLoop() [2/2]
| PyEventLoop::PyEventLoop |
( |
PyObject * |
loop | ) |
|
|
protected |
◆ createFuture()
◆ enqueue()
Send job to the Python event-loop.
- Parameters
-
| jobFn | - The JS event-loop job converted to a Python function |
- Returns
- a AsyncHandle, the value can be safely ignored
◆ enqueueWithDelay()
Schedule a job to the Python event-loop, with the given delay.
- Parameters
-
| jobFn | - The JS event-loop job converted to a Python function |
| delaySeconds | - The job function will be called after the given number of seconds |
| repeat | - If true, the job will be executed repeatedly on a fixed interval |
- Returns
- the timeoutId
◆ ensureFuture()
◆ getMainLoop()
Get the running Python event-loop on main thread, or raise a Python RuntimeError if no event-loop running.
- Returns
- an instance of
PyEventLoop
◆ getRunningLoop()
◆ initialized()
| bool PyEventLoop::initialized |
( |
| ) |
const |
◆ _locker
◆ _loop
| PyObject* PyEventLoop::_loop |
The documentation for this struct was generated from the following files: