Merging completable future results - Good practices
Is this a bad idea?
Will there be race conditions here? I tested 100000 times and found no issues, but is this theoretically a bad idea?
6 Replies
⌛ This post has been reserved for your question.
Hey @Thorinwasher! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
what's your goal here?
do you just want to have a future that resolves when all futures are done?
I want this to be able to merge multiple completable futures into the same future and retrieve all items of those completable futures. I can for example do array operations in that merged future.
Damn that looks a lot simpler 😅
Also looks more thread safe
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.