Coding style.

- asyncio.async -> asyncio.ensure_future
This commit is contained in:
Andrew Hamilton 2017-10-28 08:29:27 +10:00
parent 4935c585aa
commit 257eae4e73
2 changed files with 4 additions and 2 deletions

View file

@ -570,7 +570,8 @@ class Screen:
future = worker_.job_runner(
self._summary, self._log, self._summary._jobs_added_event,
self._appearance_changed_event)
worker_.future = asyncio.async(future, loop=self._main_loop)
worker_.future = asyncio.ensure_future(future,
loop=self._main_loop)
self.workers = workers
def stop_workers(self):