Module slack_sdk.http_retry.state
Classes
class RetryState (*, current_attempt: int = 0, custom_values: Dict[str, Any] | None = 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
-
The type of the None singleton.
var custom_values : Dict[str, Any] | None
-
The type of the None singleton.
var next_attempt_requested : bool
-
The type of the None singleton.
Methods
def increment_current_attempt(self) ‑> int