async-timer 1.1.5__tar.gz → 1.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: async-timer
3
- Version: 1.1.5
3
+ Version: 1.1.6
4
4
  Summary: The missing Python async timer.
5
5
  License: MIT
6
6
  Keywords: async,timer
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "async-timer"
3
- version = "v1.1.5"
3
+ version = "v1.1.6"
4
4
  description = "The missing Python async timer."
5
5
  authors = ["Ilya O. <vrghost@gmail.com>"]
6
6
  license = "MIT"
@@ -110,6 +110,10 @@ class Timer(typing.Generic[T]):
110
110
  """A shorthand to access timer firing delay"""
111
111
  return self.pacemaker.delay
112
112
 
113
+ def set_delay(self, new_delay: float):
114
+ """Change the delay."""
115
+ self.pacemaker.delay = new_delay
116
+
113
117
  def start(self):
114
118
  """Schedule the timer to run."""
115
119
  if self.main_task:
File without changes