File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class Routine:
6767
6868 # This routine will run every minute until stopped or canceled.
6969
70- @routines.routine(datetime.timedelta(minutes=1))
70+ @routines.routine(delta= datetime.timedelta(minutes=1))
7171 async def my_routine() -> None:
7272 print("Hello World!")
7373
@@ -77,7 +77,7 @@ async def my_routine() -> None:
7777
7878 # Pass some arguments to a routine...
7979
80- @routines.routine(datetime.timedelta(minutes=1))
80+ @routines.routine(delta= datetime.timedelta(minutes=1))
8181 async def my_routine(hello: str) -> None:
8282 print(f"Hello {hello}")
8383
@@ -87,7 +87,7 @@ async def my_routine(hello: str) -> None:
8787
8888 # Only run the routine three of times...
8989
90- @routines.routine(datetime.timedelta(minutes=1), iterations=3)
90+ @routines.routine(delta= datetime.timedelta(minutes=1), iterations=3)
9191 async def my_routine(hello: str) -> None:
9292 print(f"Hello {hello}")
9393
You can’t perform that action at this time.
0 commit comments