vcorelib.task.time.sleep module
A module implementing a task that can be used to sleep.
-
class vcorelib.task.time.sleep.SleepTask(name: str, *args, execute: Callable[[Dict[str, Dict[str, Any]], Dict[str, Any]], Coroutine[Any, Any, bool]] = None, log: Logger = None, timer: Timer = None, target: Target = None, **kwargs)[source]
Bases: Task
A task for sleeping for some duration.
-
async run(inbox: Dict[str, Dict[str, Any]], outbox: Dict[str, Any], *args, **kwargs) → bool[source]
Sleep for the amount of time specified.