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 yselivanov
Recipients Yury.Selivanov, alex.gronholm, gvanrossum, scoder, vstinner, yselivanov
Date 2015-08-01.14:33:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438439613.35.0.71649492895.issue24383@psf.upfronthosting.co.za>
In-reply-to
Content
> There are other implementations of asyncio than the one in CPython.
> Pulsar and Tornado define their own Task class. The greenio project

I'm not sure if it's possible (or even makes any sense) to integrate 
tasks from other frameworks into asyncio.

greenio simply inherits its task class from asyncio.Task, and will
automatically support concurrent.futures if we support them in
asyncio.

> I'm not opposed to support concurrent.futures.Future object. I don't
> like the idea of starting to add a special case for one module. Others
> may want to do the same for their library.

concurrent.futures is in a unique position -- it's already supported and
integrated in asyncio.  We have executors and they are even used for
DNS lookups.  Supporting concurrent.futures in asyncio.Task seems 
natural to me.

I like Alex's approach -- his idea of '__await__' for concurrent.Future
is very generic, so any other framework can integrate it.  Creating
any kind of registry in asyncio.Task seems a bit unnecessary to me at 
this stage.
History
Date User Action Args
2015-08-01 14:33:33yselivanovsetrecipients: + yselivanov, gvanrossum, scoder, vstinner, alex.gronholm, Yury.Selivanov
2015-08-01 14:33:33yselivanovsetmessageid: <1438439613.35.0.71649492895.issue24383@psf.upfronthosting.co.za>
2015-08-01 14:33:33yselivanovlinkissue24383 messages
2015-08-01 14:33:33yselivanovcreate