Skip to content

Commit

Permalink
(#21) Add a note about coroutine cancellation.
Browse files Browse the repository at this point in the history
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
  • Loading branch information
dano committed Dec 7, 2020
1 parent d5e1f28 commit e7fdf6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ What versions of Python are compatible?
---------------------------------------

`aioprocessing` will work out of the box on Python 3.5+.

Gotchas
-------
Keep in mind that, while the API exposes coroutines for interacting with
`multiprocessing` APIs, internally they are almost always being delegated
to a `ThreadPoolExecutor`, this means the caveats that apply with using
`ThreadPoolExecutor` with `asyncio` apply: namely, you won't be able to
cancel any of the coroutines, because the work being done in the worker
thread can't be interrupted.
4 changes: 2 additions & 2 deletions aioprocessing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# is zero for an official release, positive for a development branch,
# or negative for a release candidate or beta (after the base version
# number has been incremented)
version = "1.1.0"
version_info = (1, 1, 0, 1)
version = "1.1.1"
version_info = (1, 1, 1, 0)

if hasattr(multiprocessing, "get_context"):

Expand Down

0 comments on commit e7fdf6f

Please sign in to comment.