Action Engine
Loading...
Searching...
No Matches
act::pybindings::keep_event_loop_memo Struct Reference

Detailed Description

Annotation for PyBind11 functions to indicate that the event loop should be tracked and saved as a global variable.

This is primarily useful to resolve the event loop when an async overload is called from a sync context (which is ideally always the case for bound functions).

Example:

.def(py::init<>(), pybindings::keep_event_loop_memo())
Annotation for PyBind11 functions to indicate that the event loop should be tracked and saved as a gl...
Definition utils_pybind11.h:106

#include <actionengine/util/utils_pybind11.h>


The documentation for this struct was generated from the following file: