static */
| 251 | |
| 252 | /* static */ |
| 253 | bool PyEventLoop::AsyncHandle::cancelAll() { |
| 254 | for (AsyncHandle &handle: _timeoutIdMap) { |
| 255 | handle.cancel(); |
| 256 | } |
| 257 | return true; |
| 258 | } |
| 259 | |
| 260 | bool PyEventLoop::AsyncHandle::cancelled() { |
| 261 | // https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Handle.cancelled |