mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Offer a reset method.
This commit is contained in:
parent
b5f48db29e
commit
d3dcc62d1b
@ -66,6 +66,11 @@ class Schedule(drivers.IrcDriver):
|
|||||||
self.events = {}
|
self.events = {}
|
||||||
self.counter = 0
|
self.counter = 0
|
||||||
|
|
||||||
|
def reset(self):
|
||||||
|
self.events.clear()
|
||||||
|
self.schedule[:] = []
|
||||||
|
self.counter = 0
|
||||||
|
|
||||||
def addEvent(self, f, t, name=None):
|
def addEvent(self, f, t, name=None):
|
||||||
"""Schedules an event f to run at time t.
|
"""Schedules an event f to run at time t.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user