ABC for Futures · Issue #282 · python/asyncio (original) (raw)
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Description
I'm experimenting with implementing an asyncio-compatible event loop on top of libuv with Cython. It would be great if there is a way to provide a custom Future implementation. I was thinking about adding loop.create_future()
(instead of Future(loop=loop)
) API method, as well as an ABC, so that functions like ensure_future
would recognize custom Futures. @gvanrossum @Haypo what do you think about this?