aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-10 13:01:52 +0000
committerGravatar jesopo2019-02-10 13:01:52 +0000
commit41503ab5ae293b315fee9cbda35f74c8e3a7a212 (patch)
tree8546ad2f55d0f7f3b0a9ff6f67d1fc4cfe472ce8
parentAdd Timers.find_all, to find all timers of a certain name (diff)
signature
Add TimersContext.find_all
-rw-r--r--src/Timers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Timers.py b/src/Timers.py
index b45d2f88..53865181 100644
--- a/src/Timers.py
+++ b/src/Timers.py
@@ -126,3 +126,5 @@ class TimersContext(object):
**kwargs):
self._parent._add(None, name, delay, next_due, None, True,
kwargs)
+ def find_all(self, name: str) -> typing.List[Timer]:
+ return self._parent.find_all(name)