Open
Description
It would be useful to have an on_attempt
callback which was called before every invocation of the decorated function - seems like that would complete the callback suite :)
My use-case is updating some state (i.e. "connecting" / "waiting" / "connected") that it's not practical to modify from inside my decorated function. if I wasn't using backoff, I would update the state immediately before and after calling my connect function.
I can make a PR if there's support for this idea!
Metadata
Metadata
Assignees
Labels
No labels