Skip to content

StackOverflowError when chaining multiple Unis #1107

Answered by cescoffier
PyAntony asked this question in Q&A
Discussion options

You must be logged in to vote

BTW, not really pipelining, but this works:

rds.withConnection(redis -> {
            for (int i = 0; i < 5000; i++) {
                unis.add(redis.value(Integer.class).set("key-" + i, i));
            }
            return Uni.join().all(unis).andCollectFailures()
                    .replaceWithVoid();
        }).await().indefinitely();

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jponge
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
support This is a support request, not an issue
3 participants
Converted from issue

This discussion was converted from issue #1099 on November 02, 2022 21:47.