You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of these methods are used to combine 2 completable futures asynchronously, but I'm not very sure what differentiates them and which method to use in what circumstance. Would appreciate if someone could explain this thanks!
The text was updated successfully, but these errors were encountered:
I believe thenCompose is used if you want to compose two Futures, so the output of one becomes the input of the other. On the other hand, thenCombine is used if you want to put together both the outputs of each Future.
e.g. bar(foo(a)) --> thenCompose, but bar(a) + foo(a) --> thenCombine
Both of these methods are used to combine 2 completable futures asynchronously, but I'm not very sure what differentiates them and which method to use in what circumstance. Would appreciate if someone could explain this thanks!
The text was updated successfully, but these errors were encountered: