Files
futurist/doc/source/user/features.rst
Akihiro Motoki e1bcf9dff1 rearrange existing documentation to fit the new standard layout
Change-Id: I56d60de2c3a8aefa2df834634ff5e6c068d868d4
2017-07-09 01:33:00 +00:00

1.4 KiB

Features

Async

  • A .futurist.GreenThreadPoolExecutor using eventlet green thread pools. It provides a standard executor API/interface and it also gathers execution statistics. It returns instances of .futurist.GreenFuture objects.
  • A .futurist.ProcessPoolExecutor derivative that gathers execution statistics. It returns instances of .futurist.Future objects.
  • A .futurist.SynchronousExecutor that doesn't run concurrently. It has the same executor API/interface and it also gathers execution statistics. It returns instances of .futurist.Future objects.
  • A .futurist.ThreadPoolExecutor derivative that gathers execution statistics. It returns instances of .futurist.Future objects.

Periodics

  • A .futurist.periodics.PeriodicWorker that can use the previously mentioned executors to run asynchronous work periodically in parallel or synchronously. It does this by executing arbitrary functions/methods that have been decorated with the .futurist.periodics.periodic decorator according to a internally maintained schedule (which itself is based on the heap algorithm).