def cancel(self, event):
"""Remove an event from the queue.
This must be presented the ID as returned by enter().
If the event is not in the queue, this raises ValueError.
"""
with self._lock:
self._queue.remove(event)
heapq.heapify(self._queue)
sched.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录