I am trying to figure out how to create an async observer and trigger/emit
events at some time in the future without rebuilding the observable and the subscriber list.
Looking for something like:
MyAsyncObservable o = new MyAsyncObservable();
o.subscribe(s);
o.subscribe(s2);
while(scanner.hasNext()){
o.emit(scanner.nextInt()); // emit T to subscribers.
}
Where MyAsyncObservable
could just be a Observable.fromAsync(emitter,buffermode)
instead of
while(scanner.hasNext(){
Observable<Integer> o = Observable.just(scanner.nextInt());
o.subscribe(s);
o.subscribe(s2);
}