scheduler.empty()
scheduler.empty() is a Python method in the Sched Module category. Returns True if the event queue is empty. The syntax is scheduler.empty(). Returns: Boolean. A typical example: if s.empty():
print("No more events"). A close sibling is sched.scheduler(), which creates an event scheduler for delayed/periodic tasks. A close sibling is scheduler.enter(), which schedules an event after `delay` seconds. A close sibling is scheduler.enterabs(), which schedules an event at an absolute time. A close sibling is scheduler.cancel(), which cancels a scheduled event. More about this category: Event scheduler — scheduler, enter, enterabs, run, cancel. Related Sched Module entries: sched.scheduler(), scheduler.enter(), scheduler.enterabs(), scheduler.cancel(), scheduler.run(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try scheduler.empty() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.