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

Method fromId

include/PyEventLoop.hh:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 return _timeoutIdMap.size() - 1; // the index in `_timeoutIdMap`
77 }
78 static inline AsyncHandle *fromId(id_t timeoutID) {
79 try {
80 return &_timeoutIdMap.at(timeoutID);
81 } catch (...) { // std::out_of_range&
82 return nullptr; // invalid timeoutID
83 }
84 }
85
86 /**
87 * @brief Cancel all pending event-loop jobs.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected