Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
krupalshah authored Mar 8, 2021
1 parent b450bd4 commit e2ddbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Composer.startWith(() -> service.fetchPosts(), err -> logger.error("Error execut
post -> service.fetchComments(post), //this task will be applied for each post in the list
(response, postAndComments) -> new GroupedData(postAndComments) //collector will receive results as pairs of <Post,List<Comment>> assuming that the service is retuning the list of comments for a specific post
)
.thenPlay(data -> {db.insertPostsAndComments(data); })
.thenPlay(data -> { db.insertPostsAndComments(data); })
.thenPlay(() -> { mailer.sendEmail("All Tasks Completed"); })
.thenFinish();
```
Expand Down

0 comments on commit e2ddbe5

Please sign in to comment.