Ask Your Question
3

What is the cost or drawback of utilizing additional thenApply methods in CompletableFutures?

asked 2022-11-01 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-06-23 22:00:00 +0000

david gravatar image

The cost or drawback of utilizing additional thenApply methods in CompletableFutures is that it may increase the complexity and reduce the readability of the code. It can also increase the chain length and make it harder to debug and maintain the code. Additionally, adding too many thenApply methods may increase the overall execution time, as each additional method creates an additional step in the asynchronous process.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-11-01 11:00:00 +0000

Seen: 8 times

Last updated: Jun 23 '21