What is the order in which multiple thenAccept blocks of a CompletableFuture are executed
问题 So I have a method that returns a CompletableFuture . Before returning, this method adds a block with thenAccept which is executed after the CompletableFuture completes. The caller of this method also adds another block with thenAccept . Obviously this can go on with multiple chained calls. In what order are the CompletionStage returned by the thenAccept invocations executed? Is it guaranteed to be the order in which they are added? If not, how can one guarantee that they are executed in the