← Back to DAGDA | Support | Source: https://mail.python.org/pipermail/python-list/2016-December/867831.html

Recipe request: asyncio "spin off coroutine"

Marko Rauhamaa marko at pacujo.net
Thu Dec 15 01:32:29 EST 2016


"Frank Millman" <frank at chagford.com>:

> I changed 'await self.close()', to 'asyncio.ensure_future(self.close())'.
>
> Problem solved.

A nice insight.

However, shouldn't somebody somewhere in your code be keeping track of
the returned task?


Marko



More information about the Python-list mailing list