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

Add method overloads to be friendlier with questions and actions returning Task #133

Closed
4 tasks done
Galad opened this issue May 28, 2019 · 1 comment
Closed
4 tasks done
Milestone

Comments

@Galad
Copy link
Owner

Galad commented May 28, 2019

Some methods across the application do not play nice with asynchronous programming.
For instance the Then method takes an Action<T> to assert the result. With asynchronous programming, the consumer receives a Task, which he needs to await before making the assertion. This is unnecessary and could be done by the Then method itself.

  • Add Then overload or extension method that awaits the result of Task<T> and pass it to the assertion action
  • Add Select overload that unwrap the value from the task
  • Add SelectMany overload that unwrap the value from the task
  • CompositeAction that execute asynchronous actions sequentially
@Galad Galad added this to the v2 milestone May 28, 2019
@Galad
Copy link
Owner Author

Galad commented May 28, 2019

The interface IVerifies will changed in order to support async properly

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

No branches or pull requests

1 participant