Coding style.
- asyncio.async -> asyncio.ensure_future
This commit is contained in:
parent
4935c585aa
commit
257eae4e73
2 changed files with 4 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue