I am trying to migrate a Reactive project from rxjava 1 to version 2. I was using an AsyncEmitter to attach to an existing feed, by specifiying a BackpressureMode. However I am not finding a comparable way to do this in rxjava2. What replaced AsyncEmitter in rxjava 2? I see there are a number of emitter implementations, but none accept a BackPressureStrategy.
I tried
FlowableCreate flowableCreate =
new FlowableCreate(source, BackpressureStrategy.LATEST);
flowableCreate.subscribe(System.out::println);
and it compiles fine, but execution fails right away with:
Error:(123, 23) java: cannot access org.reactivestreams.Subscriber class file for org.reactivestreams.Subscriber not found. Huh?