/** * {@link Scheduler} that hosts a fixed pool of single-threaded ExecutorService-based * workers and is suited for parallel work. * * @param parallelism Number of pooled workers. * @param threadFactory a {@link ThreadFactory} to use for the fixed initialized * number of {@link Thread} * * @return a new {@link Scheduler} that hosts a fixed pool of single-threaded * ExecutorService-based workers and is suited for parallel work */ public static Scheduler newParallel(int parallelism, ThreadFactory threadFactory) { return factory.newParallel(parallelism, threadFactory); }
@Override public Scheduler newParallel(int parallelism, ThreadFactory threadFactory) { return Schedulers.Factory.super.newParallel( parallelism, threadFactory ); }
/** * {@link Scheduler} that hosts a fixed pool of single-threaded ExecutorService-based * workers and is suited for parallel work. * * @param parallelism Number of pooled workers. * @param threadFactory a {@link ThreadFactory} to use for the fixed initialized * number of {@link Thread} * * @return a new {@link Scheduler} that hosts a fixed pool of single-threaded * ExecutorService-based workers and is suited for parallel work */ public static Scheduler newParallel(int parallelism, ThreadFactory threadFactory) { return factory.newParallel(parallelism, threadFactory); }