StatusMessageWatcherAsync
Index
Constructors
Methods
Constructors
__init__
Initialize
StatusMessageWatcherAsync.Parameters
keyword-onlyrun_client: RunClientAsync
keyword-onlyto_logger: logging.Logger
keyword-onlycheck_period: timedelta = timedelta(seconds=1)
Returns None
Methods
__aenter__
Start the logging task within the context. Exiting the context will cancel the logging task.
Returns Self
__aexit__
Cancel the logging task.
Parameters
exc_type: type[BaseException] | None
exc_val: BaseException | None
exc_tb: TracebackType | None
Returns None
start
Start the logging task. The caller has to handle any cleanup by manually calling the
stopmethod.Returns Task
stop
Stop the logging task.
Returns None
Async variant of
StatusMessageWatcherthat is logging in task.