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 crenwick
Recipients crenwick, yselivanov
Date 2017-04-18.22:24:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492554274.3.0.429824615733.issue30098@psf.upfronthosting.co.za>
In-reply-to
Content
Despite the shy mention in the docs, it was not clear to me that the future returned from asyncio.run_coroutine_threadsafe is not compatible with asyncio.ensure_future (and other asyncio functions), and it took me a fair amount of frustration and source-code-digging to figure out what was going on.

To avoid this confusion for other users, I think that a verbose TypeError warning when a concurrent.futures.Future object is passed into asyncio.ensure_future would be very helpful.
History
Date User Action Args
2017-04-18 22:24:34crenwicksetrecipients: + crenwick, yselivanov
2017-04-18 22:24:34crenwicksetmessageid: <1492554274.3.0.429824615733.issue30098@psf.upfronthosting.co.za>
2017-04-18 22:24:34crenwicklinkissue30098 messages
2017-04-18 22:24:34crenwickcreate