on_wait Event
Fired periodically to show how much waiting time is left.
Syntax
class OAuthClientWaitEventParams(object): @property def time_left() -> int: ... @property def stop() -> bool: ... @stop.setter def stop(value) -> None: ... # In class OAuthClient: @property def on_wait() -> Callable[[OAuthClientWaitEventParams], None]: ... @on_wait.setter def on_wait(event_hook: Callable[[OAuthClientWaitEventParams], None]) -> None: ...
Remarks
This event is fired after authorization is started, to show how much time is left to wait for server's response. Waiting can be cancelled by setting the Stop parameter to true, which will result in authorization failure.