| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected