Replaces async occurrences with alternatives

* async is now a reserved word in python3.7
 * Rename async function to enqueue
 * Rename all async_ functions to enqueue_
 * Rename Async class to AsyncTask
 * Updates the docs.
This commit is contained in:
Pierre-Elliott Bécue
2018-07-07 21:33:43 +02:00
parent 2040771e80
commit ae75a84f7f
16 changed files with 190 additions and 190 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import pytest
from django_q.tasks import async
from django_q.tasks import enqueue
from django_q.brokers import get_broker
from django_q.cluster import Cluster
from django_q.compat import range
@@ -46,4 +46,4 @@ def test_info():
def do_sync():
async('django_q.tests.tasks.countdown', 1, sync=True, save=True)
enqueue('django_q.tests.tasks.countdown', 1, sync=True, save=True)