[Async-sig] asyncio <-> twisted interoperability

Cory Benfield cory at lukasa.co.uk
Fri Jun 3 18:53:12 EDT 2016


> On 3 Jun 2016, at 13:11, Yury Selivanov <yselivanov at gmail.com> wrote:
> 
> 2.1. There should be a way for Deferred objects to get the currently running event loop reliably. There is a pending PR to add the new ‘asyncio.get_running_loop’ function.  If we land it in 3.5.2, Deferred object will be able to get the currently running event loop and schedule callbacks in a fair fashion, similarly to Futures.
> 

Let’s pretend I’m an idiot for a moment. ;)

Why do we want Twisted to schedule callbacks in the asyncio style? Is this intended to be a compatibility mode for Twisted whereby in an asyncio runner Deferreds emulate Futures? Is it required that Deferreds behave in this way to be awaitable in Python 3.5+?

Cory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/async-sig/attachments/20160603/05e7ebd3/attachment.sig>


More information about the Async-sig mailing list