docs: _initial_action docstrings update

This commit is contained in:
Oleg A 2022-09-21 11:37:27 +03:00
parent 8f7baffdd3
commit ae724f7167
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -103,13 +103,9 @@ class ChatActionSender:
async def _initial_action(self) -> None:
"""Process initial action.
If there's no initial sleep, start worker immediately.
If initial_sleep shorter or equal to interval - call action,
wait and then start worker.
Otherwise, start loop similar to worker and wait for initial
sleep.
If there's no initial sleep - skip current step.
If initial_sleep shorter or equal to interval - call action once
Otherwise, start worker and wait for initial sleep.
"""
if not self.initial_sleep:
return