Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/async local executor #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

darkjh
Copy link

@darkjh darkjh commented Jul 21, 2014

A preview for an asynchronous local executor.

It uses the module concurrent.futures which is back-ported to python2.
It introduces an AdaptorFuture that covers the semantic gap between simpleflow's Future and concurrent.futures's Future object. The real job is forwarded to concurrent.futures's ThreadPoolExecutor.

ProcessPoolExecutor seems a better choice but there's a serialization problem (see inline comment).

@darkjh
Copy link
Author

darkjh commented Jul 21, 2014

Also simpleflow.futures.wait method should not raise ExecutionBlocked exception.

@ggreg ggreg mentioned this pull request Aug 6, 2014
Base automatically changed from master to main March 9, 2021 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant