This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Олег Иванов
Recipients docs@python, Олег Иванов
Date 2015-06-11.16:32:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434040340.54.0.582208217128.issue24433@psf.upfronthosting.co.za>
In-reply-to
Content
Docs claims there there is asyncio.ensure_future

https://docs.python.org/3/library/asyncio-task.html?highlight=ensure_future#asyncio.ensure_future

but example from docs does'nt work:

import asyncio

loop = asyncio.get_event_loop()
tasks = [
    asyncio.ensure_future(print("asasda")),

]
loop.run_until_complete(asyncio.wait(tasks))
loop.close()

Fails with:

AttributeError: 'module' object has no attribute 'ensure_future'
History
Date User Action Args
2015-06-11 16:32:20Олег Ивановsetrecipients: + Олег Иванов, docs@python
2015-06-11 16:32:20Олег Ивановsetmessageid: <1434040340.54.0.582208217128.issue24433@psf.upfronthosting.co.za>
2015-06-11 16:32:20Олег Ивановlinkissue24433 messages
2015-06-11 16:32:20Олег Ивановcreate