This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored green modes documentation and added links for issues and P…
…Rs in conf.py pytango-110 PyTango workshop @ SOLARIS - list of tasks
- Loading branch information
Lukasz Dudek
committed
May 12, 2017
1 parent
96fd003
commit ef62a23
Showing
6 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Contents | |
start | ||
quicktour | ||
ITango <itango> | ||
green | ||
green_modes/green | ||
API <api> | ||
How to <howto> | ||
FAQ <faq> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. currentmodule:: tango | ||
|
||
Green mode | ||
========== | ||
|
||
PyTango supports cooperative green Tango objects. Since version 8.1 two *green* | ||
modes have been added: :obj:`~tango.GreenMode.Futures` and | ||
:obj:`~tango.GreenMode.Gevent`. In version 9.2.0 another one has been | ||
added: :obj:`~tango.GreenMode.Asyncio`. | ||
|
||
The :obj:`~tango.GreenMode.Futures` uses the standard python module | ||
:mod:`concurrent.futures`. | ||
The :obj:`~tango.GreenMode.Gevent` mode uses the well known gevent_ library. | ||
The newest, :obj:`~tango.GreenMode.Asyncio` mode, uses asyncio_ - a Python | ||
library for asynchronous programming (it's featured as a part of a standard | ||
Python distribution since version 3.5 of Python; it's available on PyPI for | ||
older ones). | ||
|
||
You can set the PyTango green mode at a global level. Set the environment | ||
variable :envvar:`PYTANGO_GREEN_MODE` to either *futures* or *gevent* | ||
(case incensitive). If this environment variable is not defined the PyTango | ||
global green mode defaults to *Synchronous*. | ||
|
||
.. include:: green_modes_client.rst | ||
|
||
.. include:: green_modes_server.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Server green modes | ||
------------------ | ||
|
||
.. warning:: | ||
Green modes for the server side are still very much experimental. | ||
If you encounter any issues, please report them on the GitHub issues_ page. | ||
|
||
PyTango server API currently supports |