CompletableFuture ...and Merry Xmas #java #shorts

preview_player
Показать описание

Merry Xmas!

#airhacks
Рекомендации по теме
Комментарии
Автор

Then apply works on the result of the previous calculation
Then accept is used when we do not want.a return type from the calculation (eg once we're done with the calculation and now we can just print)

mayurnagdev
Автор

That's great, so does thenAccept is terminal function like in Collections we have for each()

mihirsawant