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

Extend try-again to return a value #16

Merged
merged 3 commits into from
Feb 18, 2020
Merged

Extend try-again to return a value #16

merged 3 commits into from
Feb 18, 2020

Conversation

arsalan0c
Copy link
Collaborator

@arsalan0c arsalan0c commented Feb 14, 2020

add #17

In the success continuation, instead of assigning the next_alternative function to try_again, an anonymous function is assigned which calls next_alternative and returns the result.

The tests are also updated to make use of new values being returned by calling try_again. While not necessary, this serves to test the above functionality with the existing tests.

@arsalan0c arsalan0c self-assigned this Feb 14, 2020
@arsalan0c arsalan0c added the enhancement New feature or request label Feb 14, 2020
@arsalan0c arsalan0c requested a review from anubh-v February 14, 2020 15:02
@anubh-v anubh-v merged commit 6d949f7 into master Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants