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

Allow PactGroup to trigger when all inner pacts are triggered #2

Open
omergertel opened this issue Mar 3, 2015 · 0 comments
Open
Assignees

Comments

@omergertel
Copy link
Contributor

Allow some way for PactGroup to automatically finish when all inner pacts are finished.
This is useful when some action is required, but it isn't critical when, and we don't want to block the current code until all tasks are done.

Example usage:

waiter = BackgroundWaiter() # Could be greenlet or something else not in direct control
pact_one = waiter.wait_for(some_thing)
pact_two = waiter.wait_for(some_other_thing)
PactGroup([pact_one, pact_two],automatic=True).then(some_scheduled_task)
@vmalloc vmalloc self-assigned this Jun 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants