Skip to content

reference reactor Operator #294

Discussion options

You must be logged in to vote

Hello Ilya,

Which version do you use? In the current version there is no AsyncScheduledBucket, it is removed since 7.0, there is SchedulingBucket interface that is common for both blocking and non-blocking. Semantic did not change.

I have played a bit with ProjectReactor and got the following:

   public static <T> Mono<T> decorate(SchedulingBucket bucket, ScheduledExecutorService scheduledExecutorService, int tokenToConsume, Supplier<Mono<T>> monoSupplier) {
        // if there is enough tokens in the bucket then returned future is immoderately completed
        // otherwise it will be completed inside some thread belonged to scheduledExecutorService after refilling requested amount of to…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by IManaev
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
None yet
2 participants