Update MonoUtils

This commit is contained in:
Andrea Cavalli 2021-03-02 12:01:13 +01:00
parent 0bc2a61674
commit 3e542d9ec4
1 changed files with 13 additions and 0 deletions

View File

@ -421,6 +421,19 @@ public class MonoUtils {
}).subscribeOn(Schedulers.boundedElastic());
}
public static Scheduler newBoundedSingle(String name) {
return newBoundedSingle(name, false);
}
public static Scheduler newBoundedSingle(String name, boolean daemon) {
return Schedulers.newBoundedElastic(1,
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
name,
Integer.MAX_VALUE,
daemon
);
}
public static class SinkRWStream<T> implements io.vertx.core.streams.WriteStream<T>, io.vertx.core.streams.ReadStream<T> {
private final Many<T> sink;