Skip to content

Commit

Permalink
docs: add note about multiprocessing usage (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox committed May 1, 2020
1 parent 0134f2e commit 1449589
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/index.rst
@@ -1,5 +1,12 @@
.. include:: README.rst

.. note::

Because this client uses :mod:`grpcio` library, it is safe to
share instances across threads. In multiprocessing scenarios, the best
practice is to create client instances *after* the invocation of
:func:`os.fork` by :class:`multiprocessing.Pool` or
:class:`multiprocessing.Process`.

Using the API
-------------
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Expand Up @@ -141,7 +141,7 @@ def docs(session):
"""Build the docs for this library."""

session.install("-e", ".")
session.install("sphinx", "alabaster", "recommonmark")
session.install("sphinx<3.0.0", "alabaster", "recommonmark")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand Down

0 comments on commit 1449589

Please sign in to comment.