Skip to content

Commit

Permalink
Update decorator's argument "max_time" description
Browse files Browse the repository at this point in the history
* Add that the `max_time` is in seconds
  • Loading branch information
MrwanBaghdad authored Jan 16, 2023
1 parent a1e19d9 commit 48fa04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backoff/_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def on_predicate(wait_gen: _WaitGenerator,
will be returned. The default value of None means there
is no limit to the number of tries. If a callable is passed,
it will be evaluated at runtime and its return value used.
max_time: The maximum total amount of time to try for before
max_time: The maximum total amount of time in seconds to try for before
giving up. If this time expires, the result of the last
attempt will be returned. If a callable is passed, it will
be evaluated at runtime and its return value used.
Expand Down

0 comments on commit 48fa04e

Please sign in to comment.