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

Method newEmpty

include/PyEventLoop.hh:50–53  ·  view source on GitHub ↗

* @brief Create a new `AsyncHandle` without an associated `asyncio.Handle` Python object * @return the timeoutId */

Source from the content-addressed store, hash-verified

48 * @return the timeoutId
49 */
50 static inline id_t newEmpty() {
51 auto handle = AsyncHandle(Py_None);
52 return AsyncHandle::getUniqueId(std::move(handle));
53 }
54
55 /**
56 * @brief Cancel the scheduled event-loop job.

Callers

nothing calls this directly

Calls 1

AsyncHandleClass · 0.85

Tested by

no test coverage detected