https://github.com/tyilo/fork-futures
Provides an alternative to concurrent.futures.ProcessPoolExecutor implemented using fork.
https://github.com/tyilo/fork-futures
Last synced: 12 months ago
JSON representation
Provides an alternative to concurrent.futures.ProcessPoolExecutor implemented using fork.
- Host: GitHub
- URL: https://github.com/tyilo/fork-futures
- Owner: tyilo
- License: mit
- Created: 2018-11-26T19:20:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T20:28:43.000Z (over 7 years ago)
- Last Synced: 2025-05-06T09:11:26.594Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fork-futures
============
[](https://pypi.org/project/fork-futures/)
Provides an alternative to [`concurrent.futures.ProcessPoolExecutor`][ProcessPoolExecutor] implemented
using fork.
This means that you can execute local functions in another process, without having to use [`dill`][dill] (and having to dill local variables). The arguments to the function executed are not pickled, only the return values.
`ForkPoolExecutor` can be used as a replacement for [`ProcessPoolExecutor`][ProcessPoolExecutor] and `ForkFuture` as a replacement for [`Future`][Future].
Not all of the [`Executor`][Executor] or [`Future`][Future] API has been implemented.
[ProcessPoolExecutor]: https://docs.python.org/3/library/concurrent.futures.html#processpoolexecutor
[Executor]: https://docs.python.org/3/library/concurrent.futures.html#executor-objects
[Future]: https://docs.python.org/3/library/concurrent.futures.html#future-objects
[dill]: https://pypi.org/project/dill/