CompositeFuture all vs join

2,662 views
Skip to first unread message

javadevmtl

unread,
May 1, 2017, 6:19:46 PM5/1/17
to vert.x
http://vertx.io/docs/vertx-core/java/#_concurrent_composition

What is the difference? Seems very similar.

javadevmtl

unread,
May 2, 2017, 9:25:41 AM5/2/17
to vert.x
Ok I see the difference

all
---------
- Handler will get called if and only all futures succeeded and completed.
- Handler will get called if and any one future failed and completed. 

join
---------
- Handler will only get called only if all futures completed. Status will be success if all futures succeeded or fail if any one failed.

I guess we can think of ALL as fail fast and JOIN as fail safe. Maybe not the best analogy but hey...
Reply all
Reply to author
Forward
0 new messages