linkedin / parseq

Asynchronous Java made easier
Apache License 2.0
1.17k stars 266 forks source link

Add another "andThen" method which able to take a function that could return another task #293

Closed junchuanwang closed 3 years ago

junchuanwang commented 3 years ago

Proposed solution to https://github.com/linkedin/parseq/issues/287

Users seem not be confused by use of map and andThen(Task) in general, but sometimes confused by andThen(Consumer)

This is nothing more than a syntax sugar.

I am asking for comments now before adding tests.

junchuanwang commented 3 years ago

Decide to close the PR and try to educate users instead.