We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes client needs to run a sequence of tasks, and then one final task that returns the result:
{ Iterable<Task<Foo>> fooTasks = buildFooTasks(...); // may return empty collection Task<Bar> barTask = new BarTask(); Task<Bar> foosThenBarSeq = Tasks.seq(Tasks.seq(fooTasks), barTask); // will fail if fooTasks is empty Task<Bar> foosThenBarSeq = Tasks.seq(fooTasks, barTask); // looks cleaner and less if..then..else blocks ... }
The text was updated successfully, but these errors were encountered:
Your proposal sounds good to me. I can take this as a pull request, if you're so inclined.
Sorry, something went wrong.
API in version 2.x has changed so this issue does not apply to current state of ParSeq.
No branches or pull requests
Sometimes client needs to run a sequence of tasks, and then one final task that returns the result:
The text was updated successfully, but these errors were encountered: