Skip to content

Commit

Permalink
british english
Browse files Browse the repository at this point in the history
  • Loading branch information
syncblaze committed Nov 5, 2024
1 parent 81b9e6b commit d93950c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lightbulb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ def task( # noqa: D417
the client upon the client being started, the task will also be started; it will also be started
if being added to an already-started client.
max_failures: The maximum number of failed attempts to execute the task before it is cancelled.
Setting this to a negative number will disable this behavior, and the task won't be canceled,
Setting this to a negative number will disable this behaviour, and the task won't be cancelled,
no matter how often the task fails.
max_invocations: The maximum number of times the task can be invoked before being stopped.
Setting this to a negative number will disable this behavior, allowing unlimited invocations.
Setting this to a negative number will disable this behaviour, allowing unlimited invocations.
Note:
This method can also be called with an existing task object to register it directly.
Expand Down
4 changes: 2 additions & 2 deletions lightbulb/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,10 @@ def task(
the client upon the client being started, the task will also be started; it will also be started
if being added to an already-started client.
max_failures: The maximum number of failed attempts to execute the task before it is cancelled.
Setting this to a negative number will disable this behavior, and the task won't be canceled,
Setting this to a negative number will disable this behaviour, and the task won't be cancelled,
no matter how often the task fails.
max_invocations: The maximum number of times the task can be invoked before being stopped.
Setting this to a negative number will disable this behavior, allowing unlimited invocations.
Setting this to a negative number will disable this behaviour, allowing unlimited invocations.
Example:
Expand Down
4 changes: 2 additions & 2 deletions lightbulb/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ class Task:
the client upon the client being started, the task will also be started; it will also be started
if being added to an already-started client.
max_failures: The maximum number of failed attempts to execute the task before it is cancelled.
Setting this to a negative number will disable this behavior, and the task won't be canceled,
Setting this to a negative number will disable this behaviour, and the task won't be cancelled,
no matter how often the task fails.
max_invocations: The maximum number of times the task can be invoked before being stopped.
Setting this to a negative number will disable this behavior, allowing unlimited invocations.
Setting this to a negative number will disable this behaviour, allowing unlimited invocations.
"""

__slots__ = [
Expand Down

0 comments on commit d93950c

Please sign in to comment.