diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java index 0274c3d0e..9d27a27a6 100644 --- a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java +++ b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java @@ -102,7 +102,7 @@ public Multi> of(int size, int skip) { * @return a Multi emitting lists of at most {@code size} items from the upstream Multi. */ public Multi> of(int size, Duration maximumDelay) { - return upstream.group().intoMultis().every(maximumDelay) - .flatMap(withTimeout -> withTimeout.group().intoLists().of(size)); + return Infrastructure.onMultiCreation(new MultiBufferWithTimeoutOp<>(upstream, positive(size, "size"), + validate(maximumDelay, "maximumDelay"), Infrastructure.getDefaultWorkerPool())); } }