diff options
| author | 2019-02-10 13:01:52 +0000 | |
|---|---|---|
| committer | 2019-02-10 13:01:52 +0000 | |
| commit | 41503ab5ae293b315fee9cbda35f74c8e3a7a212 (patch) | |
| tree | 8546ad2f55d0f7f3b0a9ff6f67d1fc4cfe472ce8 /src | |
| parent | Add Timers.find_all, to find all timers of a certain name (diff) | |
| signature | ||
Add TimersContext.find_all
Diffstat (limited to 'src')
| -rw-r--r-- | src/Timers.py | 2 |
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) |
