rename async -> async_dec

This commit is contained in:
users
2018-07-02 18:13:11 +03:00
parent 3d5ef5b1d8
commit c8b2b14157
2 changed files with 58 additions and 58 deletions

View File

@@ -143,7 +143,7 @@ class AsyncTask:
return self.result
def async():
def async_dec():
def decorator(fn):
def wrapper(*args, **kwargs):
return AsyncTask(fn, *args, **kwargs)