merge upstream async worker

This commit is contained in:
andrew (from workstation) 2019-11-06 16:09:41 +01:00
parent 5c8ccafd27
commit ab80f5c5d6

View File

@ -71,9 +71,12 @@ class AsyncTask(abc.ABC):
self._ready = True self._ready = True
if result is None: if result is None:
return True return 0
return result if not result:
return False
return 0
async def setup(self) -> bool: async def setup(self) -> bool:
pass pass