Utilities¶
This page documents the utility functions provided by Skarv.
Periodic Execution¶
skarv.utilities.call_every(seconds: float, wait_first: bool = False)
¶
Decorator to repeatedly call a function every specified number of seconds.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
seconds
|
float
|
The interval in seconds between calls. |
required |
wait_first
|
bool
|
If True, wait for the interval before the first call. Defaults to False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
Callable |
A decorator that schedules the function to be called periodically. |