Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Dec 15, 2019
1 parent 960bec0 commit 067e560
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -113,7 +113,7 @@ def worker2(**kwargs):
def worker3(task, **kwargs):
print('I run when there is a task in my queue')

@background_worker(event=True, priority=TASK_HIGH)
@background_worker(event=True)
def worker4(**kwargs):
print('I run when triggered with high priority')

Expand Down
3 changes: 1 addition & 2 deletions doc/collections.rst
Expand Up @@ -5,8 +5,7 @@ Task collections are useful when you need to run a pack of tasks e.g. on
program startup or shutdown. Currently collections support running task
functions only either in a foreground (one-by-one) or as the threads.

Function priority can be specified either as *TASK_\** (e.g. *TASK_NORMAL*) or
as a number (lower = higher priority).
Function priority must be specified as a number (lower = higher priority).

.. automodule:: neotasker

Expand Down
2 changes: 1 addition & 1 deletion doc/readme.rst
Expand Up @@ -119,7 +119,7 @@ Worker examples
def worker3(task, **kwargs):
print('I run when there is a task in my queue')
@background_worker(event=True, priority=TASK_HIGH)
@background_worker(event=True)
def worker4(**kwargs):
print('I run when triggered with high priority')
Expand Down

0 comments on commit 067e560

Please sign in to comment.