Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Nov 19, 2019
1 parent eab7f9e commit 469f168
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiotools/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def lru_cache(maxsize: int = 128,
leaves ``cache_info()`` for statistics unimplemented.
Note that calling the coroutine multiple times with the same arguments
before the first call returns may incur duplicate exectuions.
before the first call returns may incur duplicate executions.
This function is not thread-safe.
Expand Down
13 changes: 13 additions & 0 deletions src/aiotools/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ def start_server(worker_actxmgr: AsyncServerContextManager,
start_method: Change the start method when :mod:`multiprocessing` is used.
The default is same to what :mod:`multiprocessing` uses.
Only effective when **use_threading** is ``False``.
Note that if other libraries rely on :mod:`multiprocessing`
which is called before aiotools, you need to use
:func:`multiprocessing.set_start_method()` earlier than
both aiotools and such libraries *without* settings this
argument as it changes the global context of
:mod:`multiprocessing`.
args: The user-defined arguments passed to workers and extra
processes. If **main_ctxmgr** yields one or more values,
Expand Down Expand Up @@ -458,6 +466,11 @@ def start_server(worker_actxmgr: AsyncServerContextManager,
In **extra_procs** in non-threaded mode, stop signals are converted into
either one of :class:`KeyboardInterrupt`, :class:`SystemExit`, or
:class:`InterruptedBySignal` exception.
.. versionadded:: 0.8.4
**start_method** argument can be set to change the subprocess spawning
implementation.
'''

@_main_ctxmgr
Expand Down

0 comments on commit 469f168

Please sign in to comment.