oslo.messaging/oslo_messaging/_executors
Victor Stinner d8e68c365b Add a new aioeventlet executor
The new executor supports trollius coroutines, explicit asynchronous
programming, in addition to eventlet greenthreads, implicit asynchronous
programming.

The new AsyncioEventletExecutor class is based on the EventletExecutor
class and so it is compatible with it. The aioeventlet executor can be
used to replace the eventlet executor, but it requires an aioeventlet
event loop running in the thread running the executor (usually the main
thread). See AsyncioEventletExecutor docstring for an example how to
setup such event loop.

The aioeventlet module implements the asyncio API (PEP 3156) on top of
eventlet, see aioeventlet documentation:
http://aioeventlet.readthedocs.org/

The change adds an unit test with an endpoint implemented as a trollius
coroutine.

The executor is not supported on Python 3 yet because of eventlet issues
with monkey patching.

Implements: blueprint greenio-executor
Change-Id: I7a78ed998719a703077232726f66d882463b1297
2015-02-05 12:11:37 +01:00
..
__init__.py Move files out of the namespace package 2015-01-12 12:50:41 -05:00
base.py Update Oslo imports to remove namespace package 2015-01-21 21:09:33 -05:00
impl_aioeventlet.py Add a new aioeventlet executor 2015-02-05 12:11:37 +01:00
impl_blocking.py Move files out of the namespace package 2015-01-12 12:50:41 -05:00
impl_eventlet.py Add a new aioeventlet executor 2015-02-05 12:11:37 +01:00
impl_thread.py Update Oslo imports to remove namespace package 2015-01-21 21:09:33 -05:00