Module slack_sdk.http_retry.state
Classes
class RetryState (*, current_attempt: int = 0, custom_values: Optional[Dict[str, Any]] = None)
-
Expand source code
class RetryState: next_attempt_requested: bool current_attempt: int # zero-origin custom_values: Optional[Dict[str, Any]] def __init__( self, *, current_attempt: int = 0, custom_values: Optional[Dict[str, Any]] = None, ): self.next_attempt_requested = False self.current_attempt = current_attempt self.custom_values = custom_values def increment_current_attempt(self) -> int: self.current_attempt += 1 return self.current_attempt
Class variables
var current_attempt : int
var custom_values : Optional[Dict[str, Any]]
var next_attempt_requested : bool
Methods
def increment_current_attempt(self) ‑> int