Hello,
Thanks for the small introduction, it is really fast and straight to the point.
I noticed a mistake and wanted to share it, so that you can fix it. Section "Send GET in async way" second code example, line 1 should be:
future.thenAccept(this::processResponse);
The change is 'thenApply' -> 'thenAccept' as the referenced method "processResponse" is a Consumer, not a Function.
Cheers, Genadi
Hi, Genadi! Thanks for your correction! I really appreciate feedback
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello,
Thanks for the small introduction, it is really fast and straight to the point.
I noticed a mistake and wanted to share it, so that you can fix it.
Section "Send GET in async way" second code example, line 1 should be:
The change is 'thenApply' -> 'thenAccept' as the referenced method "processResponse" is a Consumer, not a Function.
Cheers,
Genadi
Hi, Genadi! Thanks for your correction! I really appreciate feedback