Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Jul 21, 2019
1 parent 0420168 commit 99e8c6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions atasker/co.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
async def co_mp_apply(f,
args=(),
kwargs={},
priority=TASK_NORMAL,
priority=None,
delay=None,
supervisor=None):
"""
Expand All @@ -19,7 +19,7 @@ async def co_mp_apply(f,
f: module.function (function must be located in external module)
args: function arguments
kwargs: function keyword arguments
priority: task :ref:`priority<priorities>`
priority: task :ref:`priority<priorities>` (default: TASK_NORMAL)
delay: delay before execution
supervisor: custom :doc:`task supervisor<supervisor>`
"""
Expand Down Expand Up @@ -47,7 +47,7 @@ async def get_result(self):

co = CO()
co.task_id = str(uuid.uuid4())
co.priority = priority
co.priority = priority if priority is not None else TASK_NORMAL
co.delay = delay
co.supervisor = supervisor if supervisor else task_supervisor
co.func = f
Expand Down

0 comments on commit 99e8c6d

Please sign in to comment.