Slide 138
Slide 138 text
final class FluxConcatMap extends FluxOperator {
final Function> mapper;
final Supplier> queueSupplier;
final int prefetch;
FluxConcatMap(Flux source,
Function> mapper,
Supplier> queueSupplier,
int prefetch) {
super(source);
if (prefetch <= 0)
throw new IllegalArgumentException("prefetch <= 0");
this.mapper = Objects.requireNonNull(mapper, "mapper");
this.queueSupplier = Objects.requireNonNull(queueSupplier);
this.prefetch = prefetch;
}
@Override
public void subscribe(CoreSubscriber actual) {
source.subscribe(new ConcatMapImmediate<>(s, mapper,
queueSupplier, prefetch));
}