Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Refactor thread pool implementation to use __future__ #9

Open
shadowbq opened this issue Mar 5, 2018 · 2 comments
Open

Refactor thread pool implementation to use __future__ #9

shadowbq opened this issue Mar 5, 2018 · 2 comments
Labels

Comments

@shadowbq
Copy link
Owner

shadowbq commented Mar 5, 2018

Implement the python 3.x way using future.
https://docs.python.org/3/library/concurrent.futures.html

@shadowbq
Copy link
Owner Author

shadowbq commented Mar 5, 2018

@shadowbq
Copy link
Owner Author

shadowbq commented Mar 5, 2018

from concurrent.futures import ProcessPoolExecutor
with ProcessPoolExecutor() as pool:
...
do work in parallel using pool

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant