* `take(n)` does end the execution.
* `limitRate(n)` limits the rate of requested elements.
"Received a message from chat-room {}: {}",
chatRoom.getName(),
message);
- })
- .take(10);
+ });
})
- .take(100)
+ .limitRate(10)
.takeUntil(message -> !running)
.doOnComplete(() -> log.info("TestListener is done"))
.parallel(chatRooms.length)
user,
e.getResponseBodyAsString(Charset.defaultCharset()));
})
+ .limitRate(1)
.takeUntil(message -> !running)
.doOnComplete(() -> log.info("TestWriter {} is done", user))
.parallel(1)