| 1 |
======== |
| 2 |
Features |
| 3 |
======== |
| 4 |
|
| 5 |
Async |
| 6 |
----- |
| 7 |
|
| 8 |
* A :py:class:`.futurist.GreenThreadPoolExecutor` using `eventlet`_ green |
| 9 |
thread pools. It provides a standard `executor`_ API/interface and it also |
| 10 |
gathers execution statistics. It returns instances of |
| 11 |
:py:class:`.futurist.GreenFuture` objects. |
| 12 |
* A :py:class:`.futurist.ProcessPoolExecutor` derivative that gathers execution |
| 13 |
statistics. It returns instances of :py:class:`.futurist.Future` objects. |
| 14 |
* A :py:class:`.futurist.SynchronousExecutor` that **doesn't** run |
| 15 |
concurrently. It has the same `executor`_ API/interface and it also |
| 16 |
gathers execution statistics. It returns instances |
| 17 |
of :py:class:`.futurist.Future` objects. |
| 18 |
* A :py:class:`.futurist.ThreadPoolExecutor` derivative that gathers |
| 19 |
execution statistics. It returns instances |
| 20 |
of :py:class:`.futurist.Future` objects. |
| 21 |
|
| 22 |
Periodics |
| 23 |
--------- |
| 24 |
|
| 25 |
* A :py:class:`.futurist.periodics.PeriodicWorker` that can use the previously |
| 26 |
mentioned executors to run asynchronous work periodically in parallel |
| 27 |
or synchronously. It does this by executing arbitrary functions/methods |
| 28 |
that have been decorated with the :py:func:`.futurist.periodics.periodic` |
| 29 |
decorator according to a internally maintained schedule (which itself is |
| 30 |
based on the `heap`_ algorithm). |
| 31 |
|
| 32 |
.. _heap: https://en.wikipedia.org/wiki/Heap_%28data_structure%29 |
| 33 |
.. _eventlet: http://eventlet.net/ |
| 34 |
.. _executor: https://docs.python.org/dev/library/concurrent.futures.html#executor-objects |