MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / swap

Method swap

include/PyEventLoop.hh:104–106  ·  view source on GitHub ↗

* @brief Replace the underlying `asyncio.Handle` Python object with the provided value * @return the old `asyncio.Handle` object */

Source from the content-addressed store, hash-verified

102 * @return the old `asyncio.Handle` object
103 */
104 inline PyObject *swap(PyObject *newHandleObject) {
105 return std::exchange(_handle, newHandleObject);
106 }
107
108 /**
109 * @brief Getter for if the timer has been ref'ed

Callers 1

_enqueueWithDelayFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected