Skip to content
Fantix King edited this page Nov 27, 2013 · 8 revisions

Hi I'm trying to write a wrapper of the asyncio library with a Gevnet-compatible API, by starting from latest gevent branch, replacing the event loop with the one from asyncio. The original event loop based on libev & cython is abandoned, so is the c-ares resolver; one could offer an asyncio-compatible event loop or resolver based on libev and c-ares independently.

Running the current test suite drives my development. For contributors please see also what to do porting to Python 3, how to replace event loop, and where to pick up a task.

New in Gevent3

hub.wait_async(coro_or_future)

Taking an asyncio coroutine object (generator object) or an asyncio.Future object, this method blocks the current greenlet until the given object has a result and then returns the result.